Originally Posted by
guitarscn
Ah, these chapters have not yet covered 'if' and 'else' stuff yet. :( Also definitely not covered strchr and not even stdin either, I think. I know what NULL is so that's fine even though the book did not teach to use it yet. Also, I am not familiar with the char* and *p stuff either.
The question is asking for the answer only using the very basics that have been convered in the chapters so far...no doubt anyone here can probably come up with a very sweet and short solution, but I guess it's pretty weird to just use the basic stuff.