I deleted my post because I came to realise it was a stupid question
Printable View
I deleted my post because I came to realise it was a stupid question
I don't think you need the second getchar() in your function, as fgets() actually removes the newline from the input buffer, so there should be no newline in the input buffer to "kill".
So what do you want to do once you have found the string to replace?
--
Mats
Be Positive