The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
libgen.h
Go to the documentation of this file.
1#pragma once
2
3/**
4 * @file libgen.h
5 * @brief the parts of a path. both may change path, and both may return
6 * a static string (".", "/").
7 */
8
9/** the last part: "/usr/lib/" gives "lib" */
10char *basename(char *path);
11/** all but the last part: "/usr/lib/" gives "/usr", "file" gives "." */
12char *dirname(char *path);
char * basename(char *path)
the last part: "/usr/lib/" gives "lib"
char * dirname(char *path)
all but the last part: "/usr/lib/" gives "/usr", "file" gives "."