Compatibility improvements.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2255 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#include "port.h"
|
||||
|
||||
#ifndef HAVE_STRUPR
|
||||
|
||||
#include <ctype.h>
|
||||
|
||||
char *
|
||||
strupr (char *str)
|
||||
{
|
||||
char *ptr;
|
||||
|
||||
ptr = str;
|
||||
while (*ptr)
|
||||
{
|
||||
*ptr = (char) toupper (*ptr);
|
||||
ptr++;
|
||||
}
|
||||
return str;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user