1 |
/* |
2 |
* fptools.c, some helper functions for getcgi.c and uu(en|de)view |
3 |
* |
4 |
* Distributed by the GNU General Public License. Use and be happy. |
5 |
* Read http://www.uni-frankfurt.de/~fp/Tools/Getcgi.html for more |
6 |
* information. fp@informatik.uni-frankfurt.de |
7 |
*/ |
8 |
|
9 |
/* |
10 |
* Some handy, nonstandard functions. Note that the original may |
11 |
* be both faster and better. ``better'', if your compiler allows |
12 |
* cleaner use of such functions by proper use of ``const''. |
13 |
* |
14 |
* $Id: fptools.h,v 1.2 1996/09/10 18:48:01 fp Exp $ |
15 |
*/ |
16 |
|
17 |
#ifndef FPTOOLS_H__ |
18 |
#define FPTOOLS_H__ |
19 |
|
20 |
typedef signed char schar; |
21 |
typedef unsigned char uchar; |
22 |
|
23 |
#ifndef TOOLEXPORT |
24 |
#define TOOLEXPORT |
25 |
#endif |
26 |
|
27 |
#ifdef __cplusplus |
28 |
extern "C" { |
29 |
#endif |
30 |
|
31 |
void TOOLEXPORT FP_free (void *); |
32 |
char * TOOLEXPORT FP_strdup (char *); |
33 |
char * TOOLEXPORT FP_strncpy (char *, char *, int); |
34 |
void * TOOLEXPORT FP_memdup (void *, int); |
35 |
int TOOLEXPORT FP_stricmp (char *, char *); |
36 |
int TOOLEXPORT FP_strnicmp (char *, char *, int); |
37 |
char * TOOLEXPORT FP_strrstr (char *, char *); |
38 |
char * TOOLEXPORT FP_stoupper (char *); |
39 |
char * TOOLEXPORT FP_stolower (char *); |
40 |
int TOOLEXPORT FP_strmatch (char *, char *); |
41 |
char * TOOLEXPORT FP_strstr (char *, char *); |
42 |
char * TOOLEXPORT FP_stristr (char *, char *); |
43 |
char * TOOLEXPORT FP_strirstr (char *, char *); |
44 |
char * TOOLEXPORT FP_strrchr (char *, int); |
45 |
char * TOOLEXPORT FP_fgets (char *, int, FILE *); |
46 |
char * TOOLEXPORT FP_strpbrk (char *, char *); |
47 |
char * TOOLEXPORT FP_strtok (char *, char *); |
48 |
char * TOOLEXPORT FP_cutdir (char *); |
49 |
char * TOOLEXPORT FP_strerror (int); |
50 |
char * TOOLEXPORT FP_tempnam (char *, char *); |
51 |
|
52 |
#ifdef __cplusplus |
53 |
} |
54 |
#endif |
55 |
#endif |