1 |
|
/* 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 |
#ifndef WPT_UTIL_H |
#ifndef WPT_UTIL_H |
17 |
#define WPT_UTIL_H |
#define WPT_UTIL_H |
18 |
|
|
19 |
#ifdef __cplusplus |
#define IS_PATH 1 |
|
extern "C" { |
|
|
#endif |
|
20 |
|
|
21 |
/* helpers */ |
/* helpers */ |
22 |
char* strsep (char **stringp, const char *delim); |
char* strsep (char **stringp, const char *delim); |
23 |
const char *stristr (const char *buf, const char *sub); |
const char *stristr (const char *buf, const char *sub); |
24 |
|
int check_email_address (const char *email); |
25 |
#ifdef __cplusplus |
int check_file_name (const char *fname, int is_path); |
26 |
} |
char* substr (const char *str, unsigned int begin, unsigned int end); |
27 |
#endif |
void unhexify_buffer (const char *in, char **out); |
28 |
|
|
29 |
#endif |
#endif |
|
|
|