23.10.2009, 13:35
You can do like this:
This should work, but not tested :P
edit: sry i didn't saw that you need to replace, not to remove; ignore this :P
Код:
stock removeChars(from[], char_array[]) { new from_ptr[]; for(new x = 0, o = 0, y = 0; from[x] != EOS; x++) { while(char_array[o++]) if(from[x] == char_array[o]) continue; from_ptr[y++] = from[x]; o = 0; } }
edit: sry i didn't saw that you need to replace, not to remove; ignore this :P