• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

LinuxStrings.cpp

Go to the documentation of this file.
00001 #if (defined(__GNUC__)  || defined(__GCCXML__)) && !defined(__WIN32)
00002 #include <string.h>
00003 #ifndef _stricmp
00004 int _stricmp(const char* s1, const char* s2)
00005 {
00006         return strcasecmp(s1,s2);
00007 }
00008 #endif
00009 int _strnicmp(const char* s1, const char* s2, size_t n)
00010 {
00011         return strncasecmp(s1,s2,n);
00012 }
00013 #ifndef __APPLE__
00014 char *_strlwr(char * str )
00015 {
00016         if (str==0)
00017                 return 0;
00018         for (int i=0; str[i]; i++)
00019         {
00020                 if (str[i]>='A' && str[i]<='Z')
00021                         str[i]+='a'-'A';
00022         }
00023         return str;
00024 }
00025 #endif
00026 #endif

Generated on Thu Sep 30 2010 01:27:24 for RakNet by  doxygen 1.7.1