Write a function that reads a sentence into a string and splits the sentence into words without using library functions

You have to do this without using the strtok function. Since the delimiters are not specified you assume the default delimiters such as spaces, comma, tabs and newlines

You examine character by character and when you encounter a delimiter you have to terminate the word with the NULL character(\0)