STRTREXPAND(3pub)

✨ STRTREXPAND(3pub) ✨

okay bestie, so this is a page from the C Programmer's Manual and it's all about a lil function called strtrexpand πŸ’– she lives in publib and she is genuinely so useful, no cap.


🌸 NAME 🌸

strtrexpand β€” expand tr-like notation in string πŸ¦‹

like… she takes the cute shorthand and spells it all the way out. it's giving translator energy.


πŸŽ€ SYNOPSIS πŸŽ€

#include <publib.h>
void strtrexpand(char *tgt, const char *src);

πŸ’… DESCRIPTION πŸ’…

okay so here's the tea β˜• strtrexpand takes shorthand notation β€” the same kinda vibe as the stuff tr(1) uses β€” and converts it into the equivalent longhand notation. like, she expands it. hence the name, iykyk πŸ’€

the supported short forms are literally these:

  • a-b β€” every character from a to b, inclusive, in the order their character codes give them. so like, the whole range, both ends included, periodt πŸ‘‘
  • \a β€” just the character a. the backslash is doing the most for one lil letter but okay we love her 🫢
  • \o, \oo, \ooo β€” the character with octal code o, oo, or ooo, respectively. so one, two, or three octal digits, your call bestie ✨

⭐ RETURN VALUE ⭐

strtrexpand returns nothing. like, genuinely nothing. it's a void function, she does the work and dips, no receipt, no notes πŸ’œ


🌈 SEE ALSO 🌈


πŸ‘‘ AUTHOR πŸ‘‘

Lars Wirzenius (lars.wirzenius@helsinki.fi) β€” icon behavior fr fr πŸ’–


Publib Β· C Programmer's Manual Β· STRTREXPAND(3pub)

and that's the whole page bestie, mwah πŸ’‹ this was the Publib release, from the C Programmer's Manual, filed under STRTREXPAND(3pub) β€” slay, go expand some strings πŸŽ€βœ¨

πŸ“¦ where this page comes from