| 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.3 |
* $Id: fptools.h,v 1.2 2001/06/11 20:42:36 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 |
|
|
|
| 30 |
|
|
void TOOLEXPORT FP_free (void *); |
| 31 |
|
|
char * TOOLEXPORT FP_strdup (char *); |
| 32 |
|
|
char * TOOLEXPORT FP_strncpy (char *, char *, int); |
| 33 |
|
|
void * TOOLEXPORT FP_memdup (void *, int); |
| 34 |
|
|
int TOOLEXPORT FP_stricmp (char *, char *); |
| 35 |
|
|
int TOOLEXPORT FP_strnicmp (char *, char *, int); |
| 36 |
|
|
char * TOOLEXPORT FP_strrstr (char *, char *); |
| 37 |
|
|
char * TOOLEXPORT FP_stoupper (char *); |
| 38 |
|
|
char * TOOLEXPORT FP_stolower (char *); |
| 39 |
|
|
int TOOLEXPORT FP_strmatch (char *, char *); |
| 40 |
|
|
char * TOOLEXPORT FP_strstr (char *, char *); |
| 41 |
|
|
char * TOOLEXPORT FP_stristr (char *, char *); |
| 42 |
|
|
char * TOOLEXPORT FP_strirstr (char *, char *); |
| 43 |
|
|
char * TOOLEXPORT FP_strrchr (char *, int); |
| 44 |
|
|
char * TOOLEXPORT FP_fgets (char *, int, FILE *); |
| 45 |
|
|
char * TOOLEXPORT FP_strpbrk (char *, char *); |
| 46 |
|
|
char * TOOLEXPORT FP_strtok (char *, char *); |
| 47 |
|
|
char * TOOLEXPORT FP_cutdir (char *); |
| 48 |
|
|
char * TOOLEXPORT FP_strerror (int); |
| 49 |
root |
1.3 |
#ifndef HAVE_MKSTEMP |
| 50 |
root |
1.1 |
char * TOOLEXPORT FP_tempnam (char *, char *); |
| 51 |
root |
1.3 |
#endif /* HAVE_MKSTEMP */ |
| 52 |
root |
1.1 |
|
| 53 |
|
|
#ifdef __cplusplus |
| 54 |
|
|
} |
| 55 |
|
|
#endif |
| 56 |
|
|
#endif |