Changeset 1271 for trunk/src/win32k/misc/stricmp.c
- Timestamp:
- Oct 14, 1999, 3:19:22 AM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/win32k/misc/stricmp.c
r847 r1271 1 /* $Id: stricmp.c,v 1. 1 1999-09-06 02:20:02bird Exp $1 /* $Id: stricmp.c,v 1.2 1999-10-14 01:19:21 bird Exp $ 2 2 * 3 3 * stricmp - Case insensitive string compare. … … 18 18 *******************************************************************************/ 19 19 #include <string.h> 20 20 #pragma info(nogen, noext, nouni) 21 21 22 22 /** 23 * strcmpi - case insensitive string compare. Not i subsys library. 23 * stricmp - case insensitive string compare. 24 * Not i subsys library. 24 25 * @param psz1 String 1 25 * @par mapsz2 String 226 * @param psz2 String 2 26 27 * @return 0 if equal 27 28 * != 0 if not equal … … 37 38 } 38 39 40 41 42 /** 43 * strnicmp - case insensitive string compare for up to cch chars of the strings. 44 * Not i subsys library. 45 * @param psz1 String 1 46 * @param psz2 String 2 47 * @return 0 if equal 48 * != 0 if not equal 49 */ 50 int strnicmp(const char *psz1, const char *psz2, size_t cch) 51 { 52 int iRet; 53 54 while (cch > 0 && (iRet = upcase(*psz1) - upcase(*psz2)) == 0 && *psz1 != '\0') 55 psz1++, psz2++, cch--; 56 57 return iRet; 58 } 59
Note:
See TracChangeset
for help on using the changeset viewer.