Hey guys im new to this forum here.
Anyway i was having a bit of a problem with a program im doing. See, i read data in line-by-line (not files) using fgets, following that i use strtok to break it into tokens.
What i want to know now however is find out if the first token matches a word i specify.
So for instance if i type in k 40 in my command line what should i do to verify that the token is a 'k'. I am thiking of using switch cases for this but am not really sure how to as they require integers.
Following that how do i ensure that my next token is a integer rather than a character.
Please give me a few hints as to what i possibily can do.
Thank you all veyr much