strlwr
Replaces each character of a string with its lowercase equivalent
#include <string.h>
char *strlwr (
char *str);
The address of the converted string is returned.
strlwr replaces the string str with lowercase characters by invoking the tolower function for each character in the string.
#include <string.h> #include <stdio.h> char source[ ] = { "A mixed-case STRING" }; main () { printf ("%s\n", source); printf ("%s\n", strlwr (source) ); printf ("%s\n", source); }
produces the following:
A mixed-case STRING a mixed-case string a mixed-case string