fname(3pub)

fname3pub

Filename manipulation

Usage

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

Overview

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

Releases

16 releases since Debian 1.2 (Rex); the text changed 4 times.

  1. 1.2–1.3
  2. 2.0–2.2
  3. 3.0
  4. 3.1–6.0
  5. 7–13

Author

Lars Wirzenius ([email protected])

From publib-dev 0.40-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.