can someone please show me an example of strtok i am reading in a string from a file and i want to lets say take all the words that end in : and put them into a linked list for this application words ending in : are going to be deffintions so they will go into the st def; field of a node in a linked list that contains 3 fields per node
here is my struct
struct node{
int ln;
st id;
st def;
struct node* next;
}
Im just not quite sure how strtok would be used in this application
thanks