--- In [EMAIL PROTECTED], Knowledge Seeker <[EMAIL PROTECTED]> wrote: > > this is no SMS please use descriptive english language. > > take a string with "1, 0000413, 185019" and use strtok() > of string.h. > Read MSDN for the same they have a very simple example. <snip>
But, as Thomas already has pointed out (though a tad short), please be aware that strtok() does not handle empty fields correctly. It always assumes that several consecutive delimiters (in the example given something like "1,,,,2,,,3") mean only one delimiter; this will not work in many real-life applications. Regards, Nico
