22.03.2018, 09:37
Quote:
As for str... functions, you might want to do it as following:
Relocate the data in buffer variable, detect the slash, copy everything you had there in separate variable, delete the copied item with a slash from the variable, and so on with checking proper chars (be it / or : ). Must be enough, but it might not be as beautiful as sscanf variation of approach. |