MentOS  0.8.0
The Mentoring Operating System
libgen.h
Go to the documentation of this file.
1 
6 #include "stddef.h"
7 
15 int dirname(const char *path, char *buffer, size_t buflen);
16 
20 const char *basename(const char *path);
21 
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
Define basic data types.