From: Oscar F. <of...@wa...> - 2002-07-25 21:53:17
|
"Henning, Brian" <bri...@na...> writes: > I would like to split this data in to it's corresponding list > position. if nothing exists in the position i would like to put NULL > in that position and move onto the next element. the problem is > strtok just moves to the next instance of the delimiter so i can't > store it even if I want to. can someone explain how i could do this > differently to get my desired You simply need to roll your own function to do that. BTW, strtok is one of the ugliest, dangerous hacks on the C library. Avoiding it is a Good Thing (TM). [snip] -- Oscar |