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
- 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