keyword=value1, value2, value3
The challenge with parsing isn’t parsing correct inputs; it’s generating useful error messages and recovering on incorrect inputs such as keyword=,,value1, value2, value3,,,,
or even =keyword=,,value1, value2, value3,,,,
strtok isn’t the best tool for doing that.(Yes, those could be valid inputs, but if they are, chances are they should be parsed differently)