These are non-standard functions from the Microsoft C library. Since then, MS has abandoned them in favor of renamed functions _strlwr()and _strupr():
Note that MS docs claim to be POSIX features, but as far as I can tell, they have never been.
If you need to use them in a non-MS toolchain, they are quite simple to implement.
char* strlwr(char* s)
{
char* tmp = s;
for (;*tmp;++tmp) {
*tmp = tolower((unsigned char) *tmp);
}
return s;
}
source
share