line 12: should be this: while(p) Your program gets segment violation when strtok() returns NULL.
>>I realize its probably overkill for my purpose so if anyone could point me to a simpler solution that would be appreciated too.
In C language that's about the best anyone can do.
Last edited by Ancient Dragon; Nov 21st, 2007 at 5:34 pm.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,954 posts
since Aug 2005