Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char *ft_strlowcase(char *str)
- {
- int runner;
- runner = 0;
- while (str[runner] != '\0')
- {
- if ((str[runner] > 64) && (str[runner] < 91))
- str[runner] = str[runner] + 32;
- runner++;
- }
- return (str);
- }
- int main()
- {
- char stroka[] = "aSAfadfaf23 // GGfe7878reWdsfs";
- ft_strlowcase(stroka);
- printf("%s", stroka);
- }
Advertisement
Add Comment
Please, Sign In to add comment