FNAME(3pub)

✨ FNAME πŸ’… β€” the 3pub girlies' filename toolbox ✨

okay bestie, so this is the page for FNAME, from section 3pub of the C Programmer's Manual πŸŽ€ it's a whole lil family of functions that do stuff to filenames, and yes, they're all in here together like one big happy group chat 🫢


🌸 NAME 🌸

fnbase, fndelbeg, fndelend, fndelsuf, fndir, fnhome, fnjoin, fnlastsuf, fnsetsuf β€” it's giving filename manipulation πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <publib.h>

char *fnbase(const char *fname);
void fndelbeg(char *fname);
void fndelend(char *fname);
int fndelsuf(char *fname, const char *suffix);
void fndir(char *dir, const char *fname);
int fnhome(char *homedir, const char *username);
void fnjoin(char *res, const char *f1, const char *f2);
char *fnlastsuf(const char *fname);
size_t fnsetsuf(char *fname, const char *suf, size_t max);

like, nine functions, one header, absolutely iconic behavior ✨


πŸ’œ DESCRIPTION πŸ’œ

so here's the tea β˜• these routines manipulate POSIX-style filenames. that's the whole vibe. they are the friend group that handles your filenames for you 🫢

and, um, real talk β€” this manual page is still under construction πŸ˜­πŸ’€ so that's literally all the description we got right now. no cap. the docs said "we'll finish this later" and then did not finish it. we respect the honesty tho πŸ™ˆ

ngl if you came here looking for the full deep-dive on each function, the construction cones are still up 🚧 everything above is genuinely everything this page currently says.

πŸŽ€ SEE ALSO πŸŽ€

  • publib(3) β€” the main character πŸ’…

πŸ‘‘ AUTHOR πŸ‘‘

Lars Wirzenius (lars.wirzenius@helsinki.fi) β€” the actual author, the realest one, we stan 🌟


and that's the whole page, bestie πŸ“ it lives in Publib's corner of the C Programmer's Manual, filed under FNAME(3pub) so you can find it again when you need it πŸ’– mwah, go forth and manipulate some filenames βœ¨πŸ§šπŸ’œ

πŸ“¦ where this page comes from