-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_parsepath.h
More file actions
39 lines (33 loc) · 871 Bytes
/
_parsepath.h
File metadata and controls
39 lines (33 loc) · 871 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
33
34
35
36
37
38
39
/**
* @file _parsepath.h
* @brief Parse a file elements from a string function header.
* @author T.Yokobayashi de JR4QPV
* @date 2020/06/28
*/
#ifndef ___PARSEPATH_H__
#define ___PARSEPATH_H__
/**** Constant define ****/
#define SZ_PATH_MAX (256)
#define FLG_EXTENSION (1)
#define FLG_FILENAME (2)
#define FLG_DIRNAME (4)
#define FLG_BASENAME (8)
#define FLG_WILDCARDS (0x10)
#define FLG_ABSPATH (0x20)
/**** Interface define ****/
#ifdef __cplusplus
extern "C" {
#endif
/* ----- _parsepath.c ----- */
extern int _parsepath(const char *path, char **dirpos, char **basepos, char **extpos);
#ifdef __cplusplus
}
#endif
#endif /* ___PARSEPATH_H__ */
/**
*----------------------------------------------------------------------------
* @file _parsepath.h
* History
* -------
* - 2020/06/28 New created by JR4QPV.
*/