Navigation

Operators and Keywords

Function List:

C++ API

dirname.h File Reference

#include <stdbool.h>
#include <stddef.h>
Include dependency graph for dirname.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DIRECTORY_SEPARATOR   '/'
#define ISSLASH(C)   ((C) == DIRECTORY_SEPARATOR)
#define FILE_SYSTEM_PREFIX_LEN(Filename)   0
#define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE   0
#define DOUBLE_SLASH_IS_DISTINCT_ROOT   0
#define IS_ABSOLUTE_FILE_NAME(F)   (ISSLASH ((F)[0]) || 0 < FILE_SYSTEM_PREFIX_LEN (F))
#define IS_RELATIVE_FILE_NAME(F)   (! IS_ABSOLUTE_FILE_NAME (F))

Functions

char * mdir_name (char const *file)
size_t base_len (char const *file)
size_t dir_len (char const *file)
char * last_component (char const *file)
bool strip_trailing_slashes (char *file)

Define Documentation

#define DIRECTORY_SEPARATOR   '/'
#define DOUBLE_SLASH_IS_DISTINCT_ROOT   0
#define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE   0
#define FILE_SYSTEM_PREFIX_LEN (   Filename  )     0
#define IS_ABSOLUTE_FILE_NAME (   F  )     (ISSLASH ((F)[0]) || 0 < FILE_SYSTEM_PREFIX_LEN (F))
#define IS_RELATIVE_FILE_NAME (   F  )     (! IS_ABSOLUTE_FILE_NAME (F))
#define ISSLASH (   C  )     ((C) == DIRECTORY_SEPARATOR)

Function Documentation

size_t base_len ( char const *  file  ) 
size_t dir_len ( char const *  file  ) 
char* last_component ( char const *  file  ) 
char* mdir_name ( char const *  file  ) 
bool strip_trailing_slashes ( char *  file  ) 
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines