Hi! I'm pretty new to C so this might seem like a dumb question.
I need to compare a string (ex: string=abcde) and compare it with one character (ex: char=c) and if there is a character in the string that is the same as "c", take that character out and return the string "cleaned" if you will.
So the program would give back "abde".
I was wondering if there is a way to suppress(I don't know if thats how you say it) a character in a string. So like if I were to say
for(i=0;i<5;i++)
if (string[i]==char)
string[i]="/0"
or something like that.
Thanks!