hi,
I've to do a function that removes char(input by user) from string , only if it appeared and to reduce spaces.
for instance: string = abcabcd ; and the char= c/
the return string is : ababd
I did as follow; and I don't know the fix answer :/
please I must submit it in for 2 hours....
void removeChar(char string2[SIZE], char ch)
{
//---NOTE--- its not completely works - there is a problem i.
int read = 0, write = 0;