Name
strlwr - Converts all letters in a string to lowercase.
Syntax
#include <string.h>
char *strlwr(string)
char *string;
Description
The strlwr function converts any uppercase letters in the
given null-terminated string to lowercase. Other characters
are not affected.
Notes
The strlwr function is not part of the ANSI definition, but
is instead a Microsoft extension to it, and should not be
used where ANSI portability is desired.
Return Value
strlwr returns a pointer to the converted string.
See Also
strupr(DOS)
Example
#include <string.h> #include <stdio.h>
char string[100] = "This Was a Mixed-Case String"; char
*copy; main()
{
copy = strlwr(strdup(string));
printf("The result string is: %s\n",copy);
} This program duplicates a string named string, then uses
strlwr to convert all uppercase letters in the copy to
lowercase.
(printed 6/18/89)