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
|
|
|
|
|
2008-01-03 10:31:02 +00:00
|
|
|
#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);
|
2008-04-06 20:23:28 +00:00
|
|
|
#elif !defined(_WIN32)
|
2008-01-03 10:31:02 +00:00
|
|
|
# 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
|
|
|
|
|
2008-04-06 20:23:28 +00:00
|
|
|
#ifndef _WIN32
|
2008-01-03 10:31:02 +00:00
|
|
|
#ifndef __DJGPP__
|
|
|
|
void strupr( char *s1 );
|
|
|
|
void strlwr( char *s1 );
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void strrev( char *s1 );
|
2008-01-19 01:13:47 +00:00
|
|
|
|
2008-02-11 12:12:57 +00:00
|
|
|
// remove extension from filename, doesn't work with paths.
|
|
|
|
void removeext(const char *filename, char *out);
|
|
|
|
|
2008-01-19 01:13:47 +00:00
|
|
|
//give a filename a new extension
|
2008-03-23 08:42:24 +00:00
|
|
|
extern void change_filename_extension( char *dest, const char *src, char *new_ext );
|
2008-01-19 01:13:47 +00:00
|
|
|
|
2006-03-20 16:43:15 +00:00
|
|
|
#endif
|