How can I convert a paragraph into sentences? I have a function signature as follows:
char **makeSentences(char *paragraph);
In which:
paragraph
is a string containing several sentences. Paragraph ensures that each sentence ends with a period (.) and the whole paragraph ends with a null-terminator.- returns a dynamically allocated array of sentences.
I'm a bit confused of how to allocate the memory for the array of sentences on the fly.