(file) Return to System.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/System.cpp between version 1.13 and 1.14.2.2

version 1.13, 2002/09/11 19:11:54 version 1.14.2.2, 2002/10/28 15:43:24
Line 37 
Line 37 
  
  
 #include <fstream> #include <fstream>
 #include <cctype>  // for tolower()  
 #include "System.h" #include "System.h"
  
 #include <Pegasus/Common/PegasusVersion.h> #include <Pegasus/Common/PegasusVersion.h>
Line 72 
Line 71 
     return true;     return true;
 } }
  
 // ATTN: Move to platform-specific System implementation files and call  
 // strcasecmp where it is available.  
 Sint32 System::strcasecmp(const char* s1, const char* s2)  
 {  
     while (*s1 && *s2)  
     {  
         int r = tolower(*s1++) - tolower(*s2++);  
   
         if (r)  
             return r;  
     }  
   
     if (*s2)  
         return -1;  
     else if (*s1)  
         return 1;  
   
     return 0;  
 }  
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14.2.2

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2