TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: TONY CAPPELLINI 76370,2104 (X)
from: Mark Wuest 74030,332
date: 1990-06-12 09:24:09
subject: #4281-%#..$`## C Compiler

#: 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

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.