I have a variable that has the following information "1||3|4|NEED|5|hrrm|ok"
I need code to be able to choose WHICH ever field i want. like i want to be able able to say I want field 5 and have it return only the word NEED into output or into another variable.
strtok has its limitations because it will get tripped up over the blank field "||"
I know how to do this other ways but they require me to loop thru and use a counter to stop on the occurrence.
Just trying to avoid that with some type of scanf or anything that wont get tripped up over blank fields.