bglibs
path.h
1 #ifndef LIB__PATH__H__
2 #define LIB__PATH__H__
3 
4 #include "str.h"
5 
11 #define PATH_MATCH_DOTFILES 1
12 
13 extern int path_merge(str* path, const char* start);
14 extern int fnmatch(const char* filename, const char* pattern,
15  unsigned options);
16 extern int has_magic(const char* s);
17 extern int path_match(const char* pattern, str* result, unsigned options);
18 extern int path_contains(const char* path, const char* part);
19 extern int path_mktemp(const char* prefix, str* filename);
20 extern int path_mkdirs(const char* path, unsigned mode);
21 
24 #endif
int path_merge(str *path, const char *start)
Definition: merge.c:54
int path_contains(const char *path, const char *part)
Definition: contains.c:27
int has_magic(const char *s)
Definition: fnmatch.c:26
int path_mktemp(const char *prefix, str *filename)
Definition: mktemp.c:14
int path_mkdirs(const char *path, unsigned mode)
Definition: mkdirs.c:16
int path_match(const char *pattern, str *result, unsigned options)
Definition: path/match.c:130
Definition: str.h:30
int fnmatch(const char *filename, const char *pattern, unsigned options)
Definition: fnmatch.c:32