If you used to program with lex or flex you would notice that the question is not so weird. In fact, it is common to use 'unput' to put characters back in the input buffer (which in fact can be from stdin).
Ok, I know flex does not push it into stdin, but it gives you that idea.
Cheers
| [reply] |
Aye, but we be dealin' wit a newbie here, to be sure. You be absolutely correct in ta wunderful complexity of te entire UN!X worlt, but let's not be confusin te poor bairn right from t'start. :D
| [reply] |