00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef flstring_h
00029 # define flstring_h
00030
00031 # include <FL/Fl_Export.H>
00032 # include <config.h>
00033 # include <stdio.h>
00034 # include <stdarg.h>
00035 # include <string.h>
00036 # ifdef HAVE_STRINGS_H
00037 # include <strings.h>
00038 # endif
00039 # include <ctype.h>
00040
00041
00042
00043
00044
00045
00046
00047 # ifdef index
00048 # undef index
00049 # endif
00050
00051 # if defined(WIN32) && !defined(__CYGWIN__)
00052 # define strcasecmp(s,t) _stricmp((s), (t))
00053 # define strncasecmp(s,t,n) _strnicmp((s), (t), (n))
00054
00055
00056
00057
00058 # ifndef __WATCOMC__
00059 # define strdup _strdup
00060 # define unlink _unlink
00061 # endif
00062 # elif defined(__EMX__)
00063 # define strcasecmp(s,t) stricmp((s), (t))
00064 # define strncasecmp(s,t,n) strnicmp((s), (t), (n))
00065 # endif
00066
00067 # ifdef __cplusplus
00068 extern "C" {
00069 # endif
00070
00071 FL_EXPORT extern int fl_snprintf(char *, size_t, const char *, ...);
00072 # if !HAVE_SNPRINTF
00073 # define snprintf fl_snprintf
00074 # endif
00075
00076 FL_EXPORT extern int fl_vsnprintf(char *, size_t, const char *, va_list ap);
00077 # if !HAVE_VSNPRINTF
00078 # define vsnprintf fl_vsnprintf
00079 # endif
00080
00081
00082
00083
00084
00085
00086 FL_EXPORT extern size_t fl_strlcat(char *, const char *, size_t);
00087 # if !HAVE_STRLCAT
00088 # define strlcat fl_strlcat
00089 # endif
00090
00091 FL_EXPORT extern size_t fl_strlcpy(char *, const char *, size_t);
00092 # if !HAVE_STRLCPY
00093 # define strlcpy fl_strlcpy
00094 # endif
00095
00096 # ifdef __cplusplus
00097 }
00098 # endif
00099 #endif
00100
00101
00102
00103
00104