For each string in your file, run strstr(string, your_string_to_remove). If strstr does not return NULL, then you know that what you're searching for is in the string, and then you can act to remove it.
Printable View
For each string in your file, run strstr(string, your_string_to_remove). If strstr does not return NULL, then you know that what you're searching for is in the string, and then you can act to remove it.
I'm at a loss I'm not sure if I understand. where would I place code like this? Would I be using it after I've allocated the memory or throughtoutt he program? I'm sorry if I'm dumb tonight I'm exhausted and I'm running out of time.
I see how this would help, however I'm not sure where I would put this statement? I was trying to determine it but it's all running together I can't seem to make heads or tails of anything right now.
Thank You.