summaryrefslogblamecommitdiff
path: root/src/lib/escape/escape_libgen.h
blob: 4b636740f762b62796cd52ae0776e770ba2b305d (plain) (tree)
1
2
3
4
5
6
7
8


                           



                                                                        
                  



















                                                               



     
                                
#ifndef __ESCAPE_LIBGEN_H__
#define __ESCAPE_LIBGEN_H__

/**
 * @file escape_libgen.h
 * @brief The file that provides functions ported from Unix in libgen.h.
 * @defgroup Escape_Libgen_Group Libgen.h functions.
 * @ingroup Escape
 *
 * This header provides functions ported from Unix in libgen.h.
 *
 * @{
 */

EAPI char *escape_basename(char *path);

#ifdef basename
#undef basename
#endif
#define basename(p) escape_basename(p)

EAPI char *escape_dirname(char *path);

#ifdef dirname
#undef dirname
#endif
#define dirname(p) escape_dirname(p)

/**
 * @}
 */

#endif /* __ESCAPE_LIBGEN_H__ */