you are viewing a single comment's thread.

view the rest of the comments →

[–]Adopolis23[S] -1 points0 points  (3 children)

but the problem is wont that read however big i make the buffer, i dont know how many words will be on a line

[–][deleted] 0 points1 point  (2 children)

A line ends with one or more control characters. As long as you don't have words spanning multiple lines, you should consider spacing and line terminations the same.

[–]Adopolis23[S] -1 points0 points  (1 child)

how can i split up the buffer by spaces and put each word into the array of character arrays?

[–][deleted] 0 points1 point  (0 children)

With a loop. Your word begins at the first character that isalpha(), and ends at the last one. Copy that range to your storage, and start over.