The manual
ginnOS
The reference: libc, the libraries and the kernel
Toggle main menu visibility
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" */
10
char
*
basename
(
char
*path);
11
/** all but the last part: "/usr/lib/" gives "/usr", "file" gives "." */
12
char
*
dirname
(
char
*path);
basename
char * basename(char *path)
the last part: "/usr/lib/" gives "lib"
dirname
char * dirname(char *path)
all but the last part: "/usr/lib/" gives "/usr", "file" gives "."
src
libc
include
libgen.h
Generated by
1.18.0