bglibs: path.h Source File

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
path_merge
int path_merge(str *path, const char *start)
Definition: merge.c:54
path_contains
int path_contains(const char *path, const char *part)
Definition: contains.c:27
has_magic
int has_magic(const char *s)
Definition: fnmatch.c:26
path_mktemp
int path_mktemp(const char *prefix, str *filename)
Definition: mktemp.c:14
path_mkdirs
int path_mkdirs(const char *path, unsigned mode)
Definition: mkdirs.c:16
path_match
int path_match(const char *pattern, str *result, unsigned options)
Definition: path/match.c:130
str
Definition: str.h:30
fnmatch
int fnmatch(const char *filename, const char *pattern, unsigned options)
Definition: fnmatch.c:32