Hmm, good suggestion!
I've got it to work with this piece of code code:
Code:
ptr = strstr(my_input_string,"\"\"");
if(ptr != 0)
{
len = strlen(ptr+2);
// the string exists
memmove(ptr, ptr+1,strlen(ptr+1));
// now null-terminate the string
ptr[len] = 0;
}
But i already ran into the next problem which i overlooked. Is it also possible to remove the quote prior to the one i found? Is there a way to reverse-search (and destroy! ) the previous quote, when i find a double quote like above?
I mean the bold char:
log L 03/15/2006 - 19:05:51: Rcon: "rcon 1033369585 "password" kick "blabla bla bla" from "123.123.123.123:1234"