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 fromatob, inclusive, in the order their character codes give them. so like, the whole range, both ends included, periodt π\aβ just the charactera. the backslash is doing the most for one lil letter but okay we love her π«Ά\o,\oo,\oooβ the character with octal codeo,oo, orooo, 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
- 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