What would be a normal way to, say, parse a string from a configuration file for a program written in C? Would it simply be a series of while loops, eg, in the case of getting past whitespace, something like:
Or are there standard libraries and tools which should be used to parse strings besides functions like strtok()?
PHP:
while(*string && isblank(*string))
string++;