|
libft
|
#include "libft.h"
Include dependency graph for ft_strcapitalize.c:Go to the source code of this file.
Functions | |
| char * | ft_strcapitalize (const char *s1) |
| Capitalizes all words in a string. More... | |
| char* ft_strcapitalize | ( | const char * | s1 | ) |
Capitalizes all words in a string.
Capitalizes all words (defined as stretches of alpha-numeric characters) in a NULL-terminated string and writes them to a newly allocated string.
ft_strcapitalize("My word IS 42about%8THEM") returns "My Word Is 42about%8them") | s1 | The string to capitalize. |
str in which all words have been capitalized, or NULL if allocation fails. Definition at line 51 of file ft_strcapitalize.c.
1.8.16