ref: aab7b5ae8b18b4f097efcc59ea4a59093d0d6962
dir: /sys/src/cmd/cifs/misc.c/
#include <u.h>
#include <libc.h>
#include <ctype.h>
char*
strupr(char *s)
{
char *p;
for(p = s; *p; p++)
if(*p >= 0 && islower(*p))
*p = toupper(*p);
return s;
}
char*
strlwr(char *s)
{
char *p;
for(p = s; *p; p++)
if(*p >= 0 && isupper(*p))
*p = tolower(*p);
return s;
}