STRTABIFY(3pub)

✨ STRTABIFY ✨

okay bestie, gather round πŸ’– this is a page from the C Programmer's Manual (the 3pub girlies know) and it's all about strtabify β€” she converts runs of spaces and tabs into tabs. lowkey iconic behavior.


🌸 NAME 🌸

strtabify β€” convert runs of spaces and tabs to tabs πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <publib.h>
char *strtabify(char *str, size_t tabsize);

πŸ’… DESCRIPTION πŸ’…

so here's the vibe: strtabify converts spaces and tabs into tabs and spaces β€” using the minimal amount of spaces required, possibly none β€” while preserving indentation. she's not out here ruining your pretty indented code, no ma'am 🫢

tab positions are set every tabsize columns. that's it, that's the whole gig, and she ate. πŸ”₯


🌈 RETURN VALUE 🌈

strtabify will return its first argument. that's right, she hands you back your own str β€” main character energy, giving back what she got but ✨improved✨ πŸ’œ


πŸŽ€ SEE ALSO πŸŽ€


πŸ‘‘ AUTHOR πŸ‘‘

Lars Wirzenius (lars.wirzenius@helsinki.fi) β€” thank you king πŸ™‡β€β™€οΈπŸ’–


no cap, this page is from the Publib collection in the C Programmer's Manual, 3pub section. periodt. πŸ’…βœ¨πŸŒΈπŸ¦‹
πŸ“¦ where this page comes from