dxx-rebirth/include/strutil.h

28 lines
662 B
C
Raw Normal View History

2006-03-20 16:43:15 +00:00
//Created on 6/15/99 by Owen Evans to finally remove all those "implicit
//declaration" warnings for the string functions in Linux
#if defined(macintosh)
2006-03-20 16:43:15 +00:00
extern int stricmp(const char *s1, const char *s2);
extern int strnicmp(const char *s1, const char *s2, int n);
#elif !defined(__WINDOWS__)
# include <string.h>
# define stricmp(a,b) strcasecmp(a,b)
# define strnicmp(a,b,c) strncasecmp(a,b,c)
#endif
#ifdef _WIN32_WCE
# define stricmp _stricmp
# define strnicmp _strnicmp
# define strlwr _strlwr
# define strrev _strrev
#endif
#ifndef __WINDOWS__
#ifndef __DJGPP__
void strupr( char *s1 );
void strlwr( char *s1 );
#endif
void strrev( char *s1 );
2006-03-20 16:43:15 +00:00
#endif