In standard C/C++, there is a function called sscanf, which you could use for that purpose. I don't know if there is any way to use it in Lite-C, maybe you can just make a small DLL for that.