2 * NTDLL string functions
4 * Copyright 2000 Alexandre Julliard
14 /*********************************************************************
17 INT __cdecl _memicmp( LPCSTR s1, LPCSTR s2, DWORD len )
22 if ((ret = tolower(*s1) - tolower(*s2))) break;
29 /*********************************************************************
32 LPSTR __cdecl _strupr( LPSTR str )
35 for ( ; *str; str++) *str = toupper(*str);
39 /*********************************************************************
42 * convert a string in place to lowercase
44 LPSTR __cdecl _strlwr( LPSTR str )
47 for ( ; *str; str++) *str = tolower(*str);
52 /*********************************************************************
55 LPSTR __cdecl _ultoa( unsigned long x, LPSTR buf, INT radix )
59 p = buffer + sizeof(buffer);
64 *--p = (rem <= 9) ? rem + '0' : rem + 'a' - 10;
72 /*********************************************************************
75 LPSTR __cdecl _ltoa( long x, LPSTR buf, INT radix )
83 _ultoa( x, p, radix );
88 /*********************************************************************
91 LPSTR __cdecl _itoa( int x, LPSTR buf, INT radix )
93 return _ltoa( x, buf, radix );