15 int dirname(
const char *path,
char *buffer,
size_t buflen);
20 const char *
basename(
const char *path);
29 char *
realpath(
const char *path,
char *buffer,
size_t buflen);
const char * basename(const char *path)
Extract the component after the final '/'.
Definition: libgen.c:46
char * realpath(const char *path, char *buffer, size_t buflen)
Return the canonicalized absolute pathname.
Definition: namei.c:95
int dirname(const char *path, char *buffer, size_t buflen)
Extracts the parent directory of the given path and saves it inside the given buffer,...
Definition: libgen.c:14