1 |
root |
1.1 |
/* |
2 |
|
|
* fptools.c, some helper functions for getcgi.c and uu(en|de)view |
3 |
|
|
* |
4 |
root |
1.2 |
* Distributed under the terms of the GNU General Public License. |
5 |
|
|
* Use and be happy. |
6 |
root |
1.1 |
*/ |
7 |
|
|
|
8 |
|
|
/* |
9 |
|
|
* Some handy, nonstandard functions. Note that the original may |
10 |
|
|
* be both faster and better. ``better'', if your compiler allows |
11 |
|
|
* cleaner use of such functions by proper use of ``const''. |
12 |
|
|
* |
13 |
root |
1.6 |
* $Id: fptools.h,v 1.5 2002/03/31 20:08:42 root Exp $ |
14 |
root |
1.1 |
*/ |
15 |
|
|
|
16 |
|
|
#ifndef FPTOOLS_H__ |
17 |
|
|
#define FPTOOLS_H__ |
18 |
|
|
|
19 |
|
|
typedef signed char schar; |
20 |
|
|
typedef unsigned char uchar; |
21 |
|
|
|
22 |
|
|
#ifndef TOOLEXPORT |
23 |
|
|
#define TOOLEXPORT |
24 |
|
|
#endif |
25 |
|
|
|
26 |
|
|
#ifdef __cplusplus |
27 |
|
|
extern "C" { |
28 |
|
|
#endif |
29 |
root |
1.4 |
|
30 |
root |
1.6 |
#define _FP_free FP_free |
31 |
|
|
#define _FP_strdup FP_strdup |
32 |
|
|
#define _FP_strncpy FP_strncpy |
33 |
|
|
#define _FP_memdup FP_memdup |
34 |
|
|
#define _FP_stricmp FP_stricmp |
35 |
|
|
#define _FP_strnicmp FP_strnicmp |
36 |
|
|
#define _FP_strrstr FP_strrstr |
37 |
|
|
#define _FP_stoupper FP_stoupper |
38 |
|
|
#define _FP_stolower FP_stolower |
39 |
|
|
#define _FP_strmatch FP_strmatch |
40 |
|
|
#define _FP_strstr FP_strstr |
41 |
|
|
#define _FP_stristr FP_stristr |
42 |
|
|
#define _FP_strirstr FP_strirstr |
43 |
|
|
#define _FP_strrchr FP_strrchr |
44 |
|
|
#define _FP_fgets FP_fgets |
45 |
|
|
#define _FP_strpbrk FP_strpbrk |
46 |
|
|
#define _FP_strtok FP_strtok |
47 |
|
|
#define _FP_cutdir FP_cutdir |
48 |
|
|
#define _FP_strerror FP_strerror |
49 |
|
|
#define _FP_tempnam FP_tempnam |
50 |
root |
1.5 |
|
51 |
|
|
void TOOLEXPORT _FP_free (void *); |
52 |
|
|
char * TOOLEXPORT _FP_strdup (char *); |
53 |
|
|
char * TOOLEXPORT _FP_strncpy (char *, char *, int); |
54 |
|
|
void * TOOLEXPORT _FP_memdup (void *, int); |
55 |
|
|
int TOOLEXPORT _FP_stricmp (char *, char *); |
56 |
|
|
int TOOLEXPORT _FP_strnicmp (char *, char *, int); |
57 |
|
|
char * TOOLEXPORT _FP_strrstr (char *, char *); |
58 |
|
|
char * TOOLEXPORT _FP_stoupper (char *); |
59 |
|
|
char * TOOLEXPORT _FP_stolower (char *); |
60 |
|
|
int TOOLEXPORT _FP_strmatch (char *, char *); |
61 |
|
|
char * TOOLEXPORT _FP_strstr (char *, char *); |
62 |
|
|
char * TOOLEXPORT _FP_stristr (char *, char *); |
63 |
|
|
char * TOOLEXPORT _FP_strirstr (char *, char *); |
64 |
|
|
char * TOOLEXPORT _FP_strrchr (char *, int); |
65 |
|
|
char * TOOLEXPORT _FP_fgets (char *, int, FILE *); |
66 |
|
|
char * TOOLEXPORT _FP_strpbrk (char *, char *); |
67 |
|
|
char * TOOLEXPORT _FP_strtok (char *, char *); |
68 |
|
|
char * TOOLEXPORT _FP_cutdir (char *); |
69 |
|
|
char * TOOLEXPORT _FP_strerror (int); |
70 |
root |
1.3 |
#ifndef HAVE_MKSTEMP |
71 |
root |
1.5 |
char * TOOLEXPORT _FP_tempnam (char *, char *); |
72 |
root |
1.3 |
#endif /* HAVE_MKSTEMP */ |
73 |
root |
1.1 |
|
74 |
|
|
#ifdef __cplusplus |
75 |
|
|
} |
76 |
|
|
#endif |
77 |
|
|
#endif |
78 |
root |
1.5 |
|