ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/Convert-UUlib/uulib/fptools.h
Revision: 1.5
Committed: Sun Mar 31 20:08:42 2002 UTC (24 years, 5 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.4: +43 -42 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
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.5 * $Id: fptools.h,v 1.4 2002/03/31 20:04:30 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.5 #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    
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