ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/fptools.h
(Generate patch)

Comparing Convert-UUlib/uulib/fptools.h (file contents):
Revision 1.12 by root, Fri Dec 11 20:09:23 2020 UTC vs.
Revision 1.13 by root, Fri Dec 11 20:27:00 2020 UTC

8/* 8/*
9 * Some handy, nonstandard functions. Note that the original may 9 * Some handy, nonstandard functions. Note that the original may
10 * be both faster and better. ``better'', if your compiler allows 10 * be both faster and better. ``better'', if your compiler allows
11 * cleaner use of such functions by proper use of ``const''. 11 * cleaner use of such functions by proper use of ``const''.
12 * 12 *
13 * $Id: fptools.h,v 1.12 2020/12/11 20:09:23 root Exp $ 13 * $Id: fptools.h,v 1.13 2020/12/11 20:27:00 root Exp $
14 */ 14 */
15 15
16#ifndef FPTOOLS_H__ 16#ifndef FPTOOLS_H__
17#define FPTOOLS_H__ 17#define FPTOOLS_H__
18 18
52#define FP_strstr(a,b) strstr (a, b) 52#define FP_strstr(a,b) strstr (a, b)
53 53
54void TOOLEXPORT FP_free (void *); 54void TOOLEXPORT FP_free (void *);
55char * TOOLEXPORT FP_strdup (char *); 55char * TOOLEXPORT FP_strdup (char *);
56char * TOOLEXPORT FP_strncpy (char *, char *, int); 56char * TOOLEXPORT FP_strncpy (char *, char *, int);
57void * TOOLEXPORT FP_memdup (void *, int); 57void * TOOLEXPORT FP_memdup (const void *, int);
58int TOOLEXPORT FP_stricmp (const char *, const char *); 58int TOOLEXPORT FP_stricmp (const char *, const char *);
59int TOOLEXPORT FP_strnicmp (const char *, const char *, int); 59int TOOLEXPORT FP_strnicmp (const char *, const char *, int);
60char * TOOLEXPORT FP_strrstr (char *, char *); 60char * TOOLEXPORT FP_strrstr (char *, char *);
61char * TOOLEXPORT FP_stoupper (char *); 61char * TOOLEXPORT FP_stoupper (char *);
62char * TOOLEXPORT FP_stolower (char *); 62char * TOOLEXPORT FP_stolower (char *);
63int TOOLEXPORT FP_strmatch (char *, char *); 63int TOOLEXPORT FP_strmatch (char *, char *);
64char * TOOLEXPORT FP_stristr (char *, char *); 64char * TOOLEXPORT FP_stristr (char *, char *);
65char * TOOLEXPORT FP_strirstr (char *, char *); 65char * TOOLEXPORT FP_strirstr (char *, char *);
66char * TOOLEXPORT FP_strrchr (char *, int); 66char * TOOLEXPORT FP_strrchr (const char *, int);
67char * TOOLEXPORT FP_fgets (char *, int, FILE *); 67char * TOOLEXPORT FP_fgets (char *, int, FILE *);
68char * TOOLEXPORT FP_strpbrk (char *, char *); 68char * TOOLEXPORT FP_strpbrk (char *, char *);
69char * TOOLEXPORT FP_strtok (char *, char *); 69char * TOOLEXPORT FP_strtok (char *, char *);
70char * TOOLEXPORT FP_cutdir (char *); 70char * TOOLEXPORT FP_cutdir (char *);
71char * TOOLEXPORT FP_strerror (int); 71char * TOOLEXPORT FP_strerror (int);
72#ifndef HAVE_MKSTEMP 72#ifndef HAVE_MKSTEMP
73char * TOOLEXPORT FP_tempnam (char *, char *); 73char * TOOLEXPORT FP_tempnam (char *, char *);
74#endif /* HAVE_MKSTEMP */ 74#endif /* HAVE_MKSTEMP */
75
76/* like stgricmp, but only works when one of the strings is printable ascii */
77/* not containing any of these characters: @`[\]^:_{|}~ */
78int TOOLEXPORT FP_strnicmp_fast (const char *, const char *, int);
75 79
76#if 0 /* API differs too much between systems to make those replacements */ 80#if 0 /* API differs too much between systems to make those replacements */
77#if HAVE_STRCASECMP 81#if HAVE_STRCASECMP
78# define FP_stricmp(a,b) strcasecmp (a, b) 82# define FP_stricmp(a,b) strcasecmp (a, b)
79#endif 83#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines