I have read a few lines of text into an array of C-strings. The lines have an arbitrary number of tab or space-delimited columns, and I am trying to figure out how to remove
Why not use strtok() directly? No need to modify the input
strtok()
All you need to do is repeat strtok() until you get 3 non-space tokens and then you are done!