path.h
#ifndef LIB__PATH__H__
#define LIB__PATH__H__
#include "str.h"
#define PATH_MATCH_DOTFILES 1
extern int path_merge(str* path, const char* start);
extern int fnmatch(const char* filename, const char* pattern,
unsigned options);
extern int has_magic(const char* s);
extern int path_match(const char* pattern, str* result, unsigned options);
extern int path_contains(const char* path, const char* part);
extern int path_mktemp(const char* prefix, str* filename);
extern int path_mkdirs(const char* path, unsigned mode);
#endif
fnmatch
int fnmatch(const char *filename, const char *pattern, unsigned options)
Definition fnmatch.c:32
path_merge
int path_merge(str *path, const char *start)
Definition merge.c:54
path_match
int path_match(const char *pattern, str *result, unsigned options)
Definition path/match.c:130
path_mkdirs
int path_mkdirs(const char *path, unsigned mode)
Definition mkdirs.c:16
path_mktemp
int path_mktemp(const char *prefix, str *filename)
Definition mktemp.c:14
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
str
Definition str.h:31