KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
libgen.h File Reference

Definitions for pattern matching functions. More...

#include <sys/cdefs.h>

Go to the source code of this file.

Functions

char * basename (char *path)
 Get the last component of a pathname.
 
char * dirname (char *path)
 Get the parent directory of a file pathname.
 

Detailed Description

Definitions for pattern matching functions.

This file contains the definitions for the functions basename() and dirname() as specified by the POSIX standard. How the POSIX people came up with this filename for this stuff, I don't know.

The GNU C library defines a slightly different version of these functions in <string.h> instead of here. Please note that these functions, unlike the GNU versions that are in <string.h> on Linux do modify their input values, as POSIX allows.

Author
Lawrence Sebald