Deleting characters from strings
I'm trying to make a simple spelling corrector and I'm having some trouble.
Let's say I have: "This is a spelling corrector."
How can I write a function to delete the unnessecary spaces in the string? I tried strncpy but I don't know how to skipthe spaces while copying.
And a second question.
We have: "This is is a spelling corrector."
How do I delete the second 'is'?
I'm new with C so I would apprecciate it if you guys would keep the explanation simple.
Thanks in advance.