dhcpd-pools  3.0
ISC dhcpd lease usage analyser
Macros | Functions
dirname.h File Reference
#include <stdbool.h>
#include <stddef.h>
#include "dosname.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.

Macros

#define DIRECTORY_SEPARATOR   '/'
 
#define DOUBLE_SLASH_IS_DISTINCT_ROOT   0
 

Functions

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

Macro Definition Documentation

◆ DIRECTORY_SEPARATOR

#define DIRECTORY_SEPARATOR   '/'

◆ DOUBLE_SLASH_IS_DISTINCT_ROOT

#define DOUBLE_SLASH_IS_DISTINCT_ROOT   0

Referenced by base_len(), and dir_len().

Function Documentation

◆ base_len()

size_t base_len ( char const *  file)

◆ dir_len()

size_t dir_len ( char const *  file)

Referenced by get_charset_aliases(), and mdir_name().

Here is the call graph for this function:

◆ last_component()

char* last_component ( char const *  file)

◆ mdir_name()

char* mdir_name ( char const *  file)
Here is the call graph for this function:

◆ strip_trailing_slashes()

bool strip_trailing_slashes ( char *  file)
Here is the call graph for this function: