Maybe someone can help me with this problem. I'm trying to replace two following quotes in a string to one quote. For example:
L 03/15/2006 - 18:17:17: Rcon: "rcon 1033369585 "password" kick "blabla bla bla"" from "184.108.40.206:1234"
I'm currently using strtok at the quotes to split the complete string in pieces, which i place in an array. Most of the time there are no double sets of quotes (like shown in bold in the example), but sometimes they pop up because someone uses quotes in a rcon command on our gameservers.
This is when the problem occures. Because i split on the quotes, the array gets shifted, and i get the wrong info when i use that array.
Is there a way to replace the "" with " so i can use the normal array again? I've tried searching for a good replacement function, but they are hard to find. Even when there are lots of topics about it. Can anyone help me fix this problem?
It's probably easy for the experts here, but i'm very new in C