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.14 by root, Fri Dec 11 21:59:30 2020 UTC vs.
Revision 1.15 by root, Sat Dec 12 03:55: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.14 2020/12/11 21:59:30 root Exp $ 13 * $Id: fptools.h,v 1.15 2020/12/12 03:55: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
47# define FP_ferror(s) ferror_unlocked (s) 47# define FP_ferror(s) ferror_unlocked (s)
48#else 48#else
49# define FP_ferror(s) ferror (s) 49# define FP_ferror(s) ferror (s)
50#endif 50#endif
51 51
52#if HAVE_FLOCKFILE
53# define FP_flockfile(s) flockfile (s)
54#else
55# define FP_flockfile(s) ((void *)0)
56#endif
57
52#define FP_strstr(a,b) strstr (a, b) 58#define FP_strstr(a,b) strstr (a, b)
59#define FP_strerror(a) strerror (a)
53 60
54void TOOLEXPORT FP_free (void *); 61void TOOLEXPORT FP_free (void *);
55char * TOOLEXPORT FP_strdup (char *); 62char * TOOLEXPORT FP_strdup (char *);
56char * TOOLEXPORT FP_strncpy (char *, char *, int); 63char * TOOLEXPORT FP_strncpy (char *, char *, int);
57void * TOOLEXPORT FP_memdup (const void *, int); 64void * TOOLEXPORT FP_memdup (const void *, int);
66char * TOOLEXPORT FP_strrchr (const char *, int); 73char * TOOLEXPORT FP_strrchr (const char *, int);
67char * TOOLEXPORT FP_fgets (char *, int, FILE *); 74char * TOOLEXPORT FP_fgets (char *, int, FILE *);
68char * TOOLEXPORT FP_strpbrk (char *, char *); 75char * TOOLEXPORT FP_strpbrk (char *, char *);
69char * TOOLEXPORT FP_strtok (char *, char *); 76char * TOOLEXPORT FP_strtok (char *, char *);
70char * TOOLEXPORT FP_cutdir (char *); 77char * TOOLEXPORT FP_cutdir (char *);
71char * TOOLEXPORT FP_strerror (int);
72#ifndef HAVE_MKSTEMP
73char * TOOLEXPORT FP_tempnam (char *, char *);
74#endif /* HAVE_MKSTEMP */
75 78
76/* like stgricmp, but only works when one of the strings is printable ascii */ 79/* like stgricmp, but only works when one of the strings is printable ascii */
77/* not containing any of these characters: @`[\]^:_{|}~ */ 80/* not containing any of these characters: @`[\]^:_{|}~ */
78int TOOLEXPORT FP_strnicmp_fast (const char *, const char *, int); 81int TOOLEXPORT FP_strnicmp_fast (const char *, const char *, int);
79 82

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines