reactos/sdk/lib/crt/string/strlwr.c
Thomas Faber d528e63477
[CRT] Only write to the output buffer when necessary in _strlwr. CORE-16667
Like e884290d29, this is also a hack and is missing locale awareness.
2020-02-09 10:23:01 +01:00

21 lines
214 B
C

#include <precomp.h>
/*
* @implemented
*/
char * CDECL _strlwr(char *x)
{
char *y=x;
char ch, lower;
while (*y) {
ch = *y;
lower = tolower(ch);
if (ch != lower)
*y = lower;
y++;
}
return x;
}