2000-02-25 10:15:17 +00:00
|
|
|
/*
|
|
|
|
* fptools.c, some helper functions for getcgi.c and uu(en|de)view
|
|
|
|
*
|
2001-11-01 17:20:18 +00:00
|
|
|
* Distributed under the terms of the GNU General Public License.
|
|
|
|
* Use and be happy.
|
2000-02-25 10:15:17 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Some handy, nonstandard functions. Note that the original may
|
|
|
|
* be both faster and better. ``better'', if your compiler allows
|
|
|
|
* cleaner use of such functions by proper use of ``const''.
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __FPTOOLS_H__
|
|
|
|
#define __FPTOOLS_H__
|
|
|
|
|
|
|
|
#ifndef _ANSI_ARGS_
|
|
|
|
#ifdef PROTOTYPES
|
2005-10-23 04:39:25 +00:00
|
|
|
#define _ANSI_ARGS_(c) c
|
2000-02-25 10:15:17 +00:00
|
|
|
#else
|
2005-10-23 04:39:25 +00:00
|
|
|
#define _ANSI_ARGS_(c) ()
|
2000-02-25 10:15:17 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef TOOLEXPORT
|
|
|
|
#define TOOLEXPORT
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2005-10-23 04:39:25 +00:00
|
|
|
void TOOLEXPORT _FP_free _ANSI_ARGS_((void *));
|
|
|
|
char * TOOLEXPORT _FP_strdup _ANSI_ARGS_((char *));
|
|
|
|
char * TOOLEXPORT _FP_strncpy _ANSI_ARGS_((char *, char *, int));
|
|
|
|
void * TOOLEXPORT _FP_memdup _ANSI_ARGS_((void *, int));
|
|
|
|
int TOOLEXPORT _FP_stricmp _ANSI_ARGS_((char *, char *));
|
|
|
|
int TOOLEXPORT _FP_strnicmp _ANSI_ARGS_((char *, char *, int));
|
|
|
|
char * TOOLEXPORT _FP_strrstr _ANSI_ARGS_((char *, char *));
|
|
|
|
char * TOOLEXPORT _FP_stoupper _ANSI_ARGS_((char *));
|
|
|
|
char * TOOLEXPORT _FP_stolower _ANSI_ARGS_((char *));
|
|
|
|
int TOOLEXPORT _FP_strmatch _ANSI_ARGS_((char *, char *));
|
|
|
|
char * TOOLEXPORT _FP_strstr _ANSI_ARGS_((char *, char *));
|
|
|
|
char * TOOLEXPORT _FP_stristr _ANSI_ARGS_((char *, char *));
|
|
|
|
char * TOOLEXPORT _FP_strirstr _ANSI_ARGS_((char *, char *));
|
|
|
|
char * TOOLEXPORT _FP_strrchr _ANSI_ARGS_((char *, int));
|
|
|
|
char * TOOLEXPORT _FP_fgets _ANSI_ARGS_((char *, int, FILE *));
|
|
|
|
char * TOOLEXPORT _FP_strpbrk _ANSI_ARGS_((char *, char *));
|
|
|
|
char * TOOLEXPORT _FP_strtok _ANSI_ARGS_((char *, char *));
|
|
|
|
char * TOOLEXPORT _FP_cutdir _ANSI_ARGS_((char *));
|
2001-04-01 09:46:21 +00:00
|
|
|
#if 0
|
2005-10-23 04:39:25 +00:00
|
|
|
char * TOOLEXPORT _FP_strerror _ANSI_ARGS_((int));
|
|
|
|
char * TOOLEXPORT _FP_tempnam _ANSI_ARGS_((char *, char *));
|
2001-04-01 09:46:21 +00:00
|
|
|
#endif
|
2000-02-25 10:15:17 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|