hi all,
if we use strtok toseparate a line into two parts,say rola : 23
the second part(23) is saved in the array num,,,,,how do we save the first part(rola) in a second array???
if we use strtok toseparate a line into two parts,say rola : 23
Code:
for(i=0;i<index;i++){
ptr=strtok(line[i],":");
while(ptr!=NULL)
{
strcpy(num[i],ptr);
ptr=strtok(NULL,":");
}
}
Comment