Article ID: 38335
The example below shows how to use the sscanf() C run-time function to read from an internal buffer delimiting fields with a comma (,). The key is to use the brackets in the format of sscanf() function. The format will be %[^','], which tells the function to read from the buffer until a comma (,) is reached.
Article ID: 38335 - Last Review: June 17, 2014 - Revision: 4.0