I'm one month old in C and am here with a simple query. I want to parse a space delimited line in C and read each word and execute some functions based upon those words. e.g.
Say I've :
I am 27 years old\n
I need to get I, am, 27, years and old in some variables. Also there is a little twist, if I've any numeral, I need it as a numeral and not a string.
Could anyone please write a few lines of code and help me in doing this?
Appreciate your guidance.