1 |
#ifndef WPT_UTIL_H |
#ifndef WPT_UTIL_H |
2 |
#define WPT_UTIL_H |
#define WPT_UTIL_H |
3 |
|
|
4 |
|
#define IS_PATH 1 |
5 |
|
|
6 |
/* helpers */ |
/* helpers */ |
7 |
char* strsep (char **stringp, const char *delim); |
char* strsep (char **stringp, const char *delim); |
8 |
const char *stristr (const char *buf, const char *sub); |
const char *stristr (const char *buf, const char *sub); |
9 |
int check_email_address (const char *email); |
int check_email_address (const char *email); |
10 |
|
int check_file_name (const char *fname, int is_path); |
11 |
char* substr (const char *str, unsigned int begin, unsigned int end); |
char* substr (const char *str, unsigned int begin, unsigned int end); |
12 |
|
void unhexify_buffer (const char *in, char **out); |
13 |
|
|
14 |
#endif |
#endif |