summaryrefslogtreecommitdiff
path: root/legacy/escape/src/lib/escape_libgen.h
blob: 8bdde7c7e9b31bed94ee536e1f0ebac866ed7ef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#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.
 *
 * 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__ */