I have a little problem. I'm writing a plug-in for a program and I have a problem. I need to parse kind of a script, this script is provided to me as
and an example of a script could beCode:char *EntScript;
Now I don't need the code to parse or anything, I want to write that code myself, the problem is that I don't know how to parse that string line by line. I know that if EntScript was a FILE kind of variable then I would use fgets because it stops as soon as it finds a line break or EOF, whichever comes first. How can I do a similar function that instead of taking a FILE variable uses the variable already defined?Code:{ "classname" "directional_audio" "angle" "270" } { "classname" "audio_source" "origin" "0 0 24" }
Thanks.