mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
add a inline strupr for us Unix folk
svn path=/branches/xmlbuildsystem/; revision=14394
This commit is contained in:
@@ -19,6 +19,8 @@
|
||||
#endif
|
||||
|
||||
#ifndef WIN32
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <wctype.h>
|
||||
#include <math.h>
|
||||
|
||||
@@ -29,7 +31,15 @@ inline char* strlwr ( char* str )
|
||||
*p++ = tolower(*p);
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
inline char* strupr ( char* str )
|
||||
{
|
||||
char *c = str;
|
||||
while ( *str++ )
|
||||
toupper( *str );
|
||||
return c;
|
||||
}
|
||||
|
||||
#define _finite __finite
|
||||
#define _isnan __isnan
|
||||
#define stricmp strcasecmp
|
||||
|
||||
Reference in New Issue
Block a user