|
-
Nov 12th, 2002, 08:27 AM
#1
Thread Starter
Addicted Member
strtok problems
Hello
I am having problems using strtok on string like:
1,,Andrew,Dunn,215,63,,,342,,,,,
each comma delimits a record, so i need the string to tokenise to:
record-1
record-
record-Andrew
record-Dunn
record-215
record-63
record-
record-
record-342.....etc
But strtok seems to ignore the records that are ,,.
Is there an easy way around this?
cheers
in advance
Andy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|