Original Post
Hey, everyone. I know that it's not really the BEST thing to do. But I am creating a very simple scripting engine. By simple, I mean just commands like 'print', 'add', 'sub', 'mult', 'div', etc. Well, I know how to parse the math functions, but how do I get a string from the print function? ex.: print "This is a string." After I 'sscanf' the parameter passed to 'ParseCommand' to find the 'print' function, how do I place "This is a string." into a 'char' array? Because if I 'sscanf' like this: 'sscanf(szString, "%s %s", szCmd, szParam1);' it cuts off 'szParam1' at the first space. How do I extract "This is a string."? Any help would be greatly appreciated. Thanks a lot! =)