N
New
I have a String from a file in the form <number> <word>,<word>,<word>,<word>
<number>
when I try to tokenize it I store it in a char[] and tokenize it using
strtok(string, " ") and then tokenize the orignal string using
strtok(string,",")
the first tokenization gives me only the first number and then NULL's
and the second tokenization gives me 1st char[]=<word> 2nd char[]=<word> 3rd
char[]=<word>
4th char[]=<word> <number>
What am I doing wrong?
<number>
when I try to tokenize it I store it in a char[] and tokenize it using
strtok(string, " ") and then tokenize the orignal string using
strtok(string,",")
the first tokenization gives me only the first number and then NULL's
and the second tokenization gives me 1st char[]=<word> 2nd char[]=<word> 3rd
char[]=<word>
4th char[]=<word> <number>
What am I doing wrong?