21 size_t stringSize = strlen(s);
22 buffer = calloc(1, stringSize + 1);
25 for (
size_t index = 0; index < stringSize; index++)
29 if (isspace(c) || !isalpha(c))
34 strcat(buffer, s + index);
47 buffer[index] = (char)c;
Declaration of the titlecase() function, for making a word lowercase with the first letter uppercase.
char * titlecase(const char *s)
Convert the first word (or only word) in the given string to lowercase then make the first letter upp...