1 |
twoaday |
273 |
/* wptUtil.h |
2 |
|
|
* Copyright (C) 2006 Timo Schulz |
3 |
|
|
* |
4 |
|
|
* This file is part of WinPT. |
5 |
|
|
* |
6 |
|
|
* WinPT is free software; you can redistribute it and/or modify |
7 |
|
|
* it under the terms of the GNU General Public License as published by |
8 |
|
|
* the Free Software Foundation; either version 2 of the License, or |
9 |
|
|
* (at your option) any later version. |
10 |
|
|
* |
11 |
|
|
* WinPT is distributed in the hope that it will be useful, |
12 |
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
|
|
* GNU General Public License for more details. |
15 |
|
|
*/ |
16 |
werner |
37 |
#ifndef WPT_UTIL_H |
17 |
|
|
#define WPT_UTIL_H |
18 |
|
|
|
19 |
twoaday |
247 |
#define IS_PATH 1 |
20 |
|
|
|
21 |
werner |
37 |
/* helpers */ |
22 |
|
|
char* strsep (char **stringp, const char *delim); |
23 |
|
|
const char *stristr (const char *buf, const char *sub); |
24 |
twoaday |
189 |
int check_email_address (const char *email); |
25 |
twoaday |
247 |
int check_file_name (const char *fname, int is_path); |
26 |
twoaday |
214 |
char* substr (const char *str, unsigned int begin, unsigned int end); |
27 |
werner |
37 |
|
28 |
|
|
#endif |