I have seen "config" files(yes, text files) for various console applications that look like the following
<token> <value>
How would I go about parsing such a thing in C, where < value > could be a string, a letter or even an integer/float/double?
I read this question " How do I parse a token from a string in C? " where it is mostly recommended to use strtok, but also that it's not thread-safe, and I am planning on spawning multiple threads(provided I am able to finish my application)
P.S Here is an example of a token and a value
user username123
pass 123456
Ah, I forgot the tricky part. I must also be able to parse a token, which has multiple values either separated by a comma.