Split string in C every white space
- by redsolja
I want to write a program in C that displays each word of a whole sentence (taken as input) at a seperate line. This is what i have done so far:
void manipulate(char *buffer);
int get_words(char *buffer);
int main(){
char buff[100];
printf("sizeof %d\nstrlen %d\n", sizeof(buff), strlen(buff)); // Debugging reasons
bzero(buff,…