23.05.2009, 17:14
If you were to use SSCANF you wouldn't have to worry about the reason being a word long, as you could use "z", which would catch all the words and make the reason optional. But if you insist on using strtok I guess this works