#: 4294 S3/Languages
12-Jun-90 09:24:09
Sb: #4281-%#**$"## C Compiler
Fm: Mark Wuest 74030,332
To: TONY CAPPELLINI 76370,2104 (X)
Tony,
1. Look in the C compiler manual, and you will find that getchar() does indeed
return an int.
2. Immediately after the getchar() that seems to return immediately, add the
following line:
printf("getchar returned %d\n",ch);
This will tell you what it returned. I don't know what you will find, but it
is almost always "obvious" enough to make you feel stupid. ('Ever notice how,
when you lose something, you always find it in the *LAST* place you look? )
Mark
|