forked from fantaisie-software/purebasic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpath.h
More file actions
32 lines (26 loc) · 705 Bytes
/
path.h
File metadata and controls
32 lines (26 loc) · 705 Bytes
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 MBA_PATH_H
#define MBA_PATH_H
/* path - manipulate file path names
*/
#ifdef __cplusplus
extern "C" {
#endif
#ifndef LIBMBA_API
#ifdef WIN32
# ifdef LIBMBA_EXPORTS
# define LIBMBA_API __declspec(dllexport)
# else /* LIBMBA_EXPORTS */
# define LIBMBA_API __declspec(dllimport)
# endif /* LIBMBA_EXPORTS */
#else /* WIN32 */
# define LIBMBA_API extern
#endif /* WIN32 */
#endif /* LIBMBA_API */
LIBMBA_API int path_canon(const unsigned char *src, const unsigned char *slim,
unsigned char *dst, unsigned char *dlim,
int srcsep, int dstsep);
LIBMBA_API unsigned char *path_name(unsigned char *path, unsigned char *plim, int sep);
#ifdef __cplusplus
}
#endif
#endif /* MBA_PATH_H */