STRUNTABIFY(3pub)
π STRUNTABIFY π
okay bestie, welcome to the publib corner of the C Programmer's Manual, where we turn your chaotic tab situation into something the timeline can actually render β¨
πΈ NAME πΈ
struntabify β literally just convert tabs to spaces, no cap π«Ά
π SYNOPSIS π
#include <publib.h>
char *struntabify(char *str, size_t tabsize);
β¨ DESCRIPTION β¨
so here's the vibe: struntabify will convert all tab characters ('\t') in the string str to spaces. every single one. not a single tab survives, periodt π
tab positions are at every tabsize columns. that's the whole layout logic, iykyk.
β οΈ important bestie: the string is supposed to be big enough to hold the conversion, because the whole thing is done in place. no new buffer, no escape hatch, no take-backs. if it's not big enoughβ¦ that's on you, not me π
π₯ RETURN VALUE π₯
struntabify will return its first argument. that's it. that's the return. iconic, honestly π
π¦ SEE ALSO π¦
π AUTHOR π
Lars Wirzenius (lars.wirzenius@helsinki.fi) β the main character who wrote this fr fr π
and that's the whole page, bestie! this little love letter lives in Publib, under the C Programmer's Manual, as STRUNTABIFY(3pub) β go forth and untabify responsibly ππ
π¦ where this page comes from
- debian bookworm: publib-dev 0.40-3+b1 Β· BSD-2-Clause
- debian trixie: publib-dev 0.40-4 Β· BSD-2-Clause
- ubuntu jammy: publib-dev 0.40-3build1 Β· BSD-2-Clause
- ubuntu noble: publib-dev 0.40-3build1 Β· BSD-2-Clause
- ubuntu questing: publib-dev 0.40-4
- ubuntu resolute: publib-dev 0.40-4build1 Β· BSD-2-Clause
- ubuntu stonking: publib-dev 0.40-4build1 Β· BSD-2-Clause
- Copyright (c) 1994-2006 Lars Wirzenius. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms