[Plib-cvs] plib/src/util ul.cxx,1.33,1.34
Brought to you by:
sjbaker
From: Wolfram K. <wol...@us...> - 2004-10-30 16:11:41
|
Update of /cvsroot/plib/plib/src/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2158 Modified Files: ul.cxx Log Message: Added two conspicuous warnings in comments for others not to fall into the same trap as I did. Index: ul.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/util/ul.cxx,v retrieving revision 1.33 retrieving revision 1.34 diff -u -d -r1.33 -r1.34 --- ul.cxx 16 Dec 2003 22:32:43 -0000 1.33 +++ ul.cxx 30 Oct 2004 16:11:07 -0000 1.34 @@ -417,9 +417,15 @@ // string comparisons that are *not* case sensitive: /* + + I'm sick of half the machines on the planet supporting strncasecmp and the other half strnicmp - so here is my own - offering: + offering. + + **** ATTENTION **** + WK: If you used strnicmp, make sure you realise the completely + changed meaning of the return value - 0 means not equal! */ int ulStrNEqual ( const char *s1, const char *s2, int len ) @@ -457,7 +463,11 @@ /* I'm sick of half the machines on the planet supporting strcasecmp and the other half stricmp - so here is my own - offering: + offering. + + **** ATTENTION **** + WK: If you used strnicmp, make sure you realise the completely + changed meaning of the return value - 0 means not equal! */ int ulStrEqual ( const char *s1, const char *s2 ) |