Say I have the line in this format
"word word 12 YR" or "word word 10 MO"
and I want to convert it to
char * containing either "12Y" or "10M" respectively.
The format is two words followed by numerical followed by the word denoting the year or the month. words are space/tab separated. Currently, I am playing around with the strtok function
Thanks