summaryrefslogtreecommitdiff
path: root/legacy/escape/src/lib/escape_libgen.h
blob: 0c23a76821c09dd5c7d9fec7fe218e6e5a226f43 (plain) (blame)
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
#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__ */