DOKK / manpages / debian 11 / publib-dev / fnhome.3pub.en
FNAME(3pub) C Programmer's Manual FNAME(3pub)

fnbase, fndelbeg, fndelend, fndelsuf, fndir, fnhome, fnjoin, fnlastsuf, fnsetsuf - filename manipulation

#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);

These routines manipulate POSIX-style filenames. This manual page is still under construction.

publib(3)

Lars Wirzenius (lars.wirzenius@helsinki.fi)

C Programmer's Manual Publib