Nico Heinze wrote:
> --- 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

Would have probably been longer had the OP specified what language they 
were using.  Kind of hard to help without the OP providing critical info.

Besides, I'm kind of partial to C++/Safe C++ now.  I did mention the 
empty field issue.  Figured the info. I gave would be enough to go on. 
And someone recently complained about me giving complete solutions.  I 
can't win.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* VerifyMyPC 2.5
Change tracking and management tool.
Reduce tech. support times from 2 hours to 5 minutes.

http://www.CubicleSoft.com/VerifyMyPC/

Reply via email to