/* FUNCTION <>---force string to lowercase INDEX strlwr SYNOPSIS #include char *strlwr(char *<[a]>); DESCRIPTION <> converts each character in the string at <[a]> to lowercase. RETURNS <> returns its argument, <[a]>. PORTABILITY <> is not widely portable. <> requires no supporting OS subroutines. QUICKREF strlwr */ #include #include char * _DEFUN (strlwr, (s), char *s) { unsigned char *ucs = (unsigned char *) s; for ( ; *ucs != '\0'; ucs++) { *ucs = tolower(*ucs); } return s; }