Changeset 974 for trunk/src/kernel32/heapstring.cpp
- Timestamp:
- Sep 18, 1999, 5:59:29 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/heapstring.cpp
r930 r974 1 /* $Id: heapstring.cpp,v 1.1 0 1999-09-14 13:44:21 phallerExp $ */1 /* $Id: heapstring.cpp,v 1.11 1999-09-18 15:59:29 sandervl Exp $ */ 2 2 3 3 /* … … 18 18 #include <winnls.h> 19 19 #include <unicode.h> 20 #include <ctype.h> 20 21 #include <wcstr.h> 21 22 #include "heap.h" … … 202 203 } 203 204 205 /***************************************************************************** 206 * Name : lstrncmpiA 207 * Purpose : 208 * Parameters: 209 * Variables : 210 * Result : 211 * Remark : 212 * Status : 213 * 214 * Author : Przemyslaw Dobrowolski 215 *****************************************************************************/ 216 INT WINAPI lstrncmpiA( LPCSTR str1, LPCSTR str2, INT n ) 217 { 218 INT firstch,lastch; 219 INT result = 0; 220 221 if (n) 222 { 223 do 224 { 225 firstch = tolower(*str1); 226 lastch = tolower(*str2); 227 str1++; 228 str2++; 229 } while (--n && str1 && str2 && firstch == lastch); 230 231 result = firstch - lastch; 232 } 233 234 return(result); 235 } 204 236 205 237
Note:
See TracChangeset
for help on using the changeset viewer.