summaryrefslogtreecommitdiff
path: root/src/c_fl_filename.h
blob: 0839293cd99852cad38d7713b4271545c2676948 (plain)
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


//  Programmed by Jedidiah Barber
//  Released into the public domain


#ifndef FL_FILENAME_GUARD
#define FL_FILENAME_GUARD


extern "C" const int fl_path_max;


extern "C" void free_filename_file_list(void * l, int n);
extern "C" const char * filename_dname(void * l, int n);


extern "C" void filename_decode_uri(char *uri);
extern "C" int filename_absolute(char * to, int tolen, const char * from);
extern "C" int filename_expand(char * to, int tolen, const char * from);
extern "C" const char * filename_ext(const char * buf);
extern "C" int filename_isdir(const char * name);
extern "C" int filename_list(const char * d, void * l, void * f);
extern "C" int filename_match(const char * name, const char * pattern);
extern "C" const char * filename_name(const char * name);
extern "C" int filename_relative(char * to, int tolen, const char * from);
extern "C" char * filename_setext(char * to, int tolen, const char * ext);
extern "C" int filename_open_uri(const char * uri, char * msg, int msglen);


extern "C" int filename_alphasort(char * a, char * b);
extern "C" int filename_casealphasort(char * a, char * b);
extern "C" int filename_numericsort(char * a, char * b);
extern "C" int filename_casenumericsort(char * a, char * b);


#endif