1 /* 2 * fptools.c, some helper functions for getcgi.c and uu(en|de)view 3 * 4 * Distributed under the terms of the GNU General Public License. 5 * Use and be happy. 6 */ 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 * $Id: fptools.h,v 1.4 2001/06/06 18:21:47 fp Exp $ 14 */ 15 16 #ifndef __FPTOOLS_H__ 17 #define __FPTOOLS_H__ 18 19 #ifndef _ANSI_ARGS_ 20 #ifdef PROTOTYPES 21 #define _ANSI_ARGS_(c) c 22 #else 23 #define _ANSI_ARGS_(c) () 24 #endif 25 #endif 26 27 #ifndef TOOLEXPORT 28 #define TOOLEXPORT 29 #endif 30 31 #ifdef __cplusplus 32 extern "C" { 33 #endif 34 35 void TOOLEXPORT _FP_free _ANSI_ARGS_((void *)); 36 char * TOOLEXPORT _FP_strdup _ANSI_ARGS_((char *)); 37 char * TOOLEXPORT _FP_strncpy _ANSI_ARGS_((char *, char *, int)); 38 void * TOOLEXPORT _FP_memdup _ANSI_ARGS_((void *, int)); 39 int TOOLEXPORT _FP_stricmp _ANSI_ARGS_((char *, char *)); 40 int TOOLEXPORT _FP_strnicmp _ANSI_ARGS_((char *, char *, int)); 41 char * TOOLEXPORT _FP_strrstr _ANSI_ARGS_((char *, char *)); 42 char * TOOLEXPORT _FP_stoupper _ANSI_ARGS_((char *)); 43 char * TOOLEXPORT _FP_stolower _ANSI_ARGS_((char *)); 44 int TOOLEXPORT _FP_strmatch _ANSI_ARGS_((char *, char *)); 45 char * TOOLEXPORT _FP_strstr _ANSI_ARGS_((char *, char *)); 46 char * TOOLEXPORT _FP_stristr _ANSI_ARGS_((char *, char *)); 47 char * TOOLEXPORT _FP_strirstr _ANSI_ARGS_((char *, char *)); 48 char * TOOLEXPORT _FP_strrchr _ANSI_ARGS_((char *, int)); 49 char * TOOLEXPORT _FP_fgets _ANSI_ARGS_((char *, int, FILE *)); 50 char * TOOLEXPORT _FP_strpbrk _ANSI_ARGS_((char *, char *)); 51 char * TOOLEXPORT _FP_strtok _ANSI_ARGS_((char *, char *)); 52 char * TOOLEXPORT _FP_cutdir _ANSI_ARGS_((char *)); 53 char * TOOLEXPORT _FP_strerror _ANSI_ARGS_((int)); 54 char * TOOLEXPORT _FP_tempnam _ANSI_ARGS_((char *, char *)); 55 56 #ifdef __cplusplus 57 } 58 #endif 59 #endif 60