| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | getchar and EOF |
-=[ Hi Darin ]=- It was 18:59:04 13 Nov 98 in C_ECHO, when the peace was suddenly disturbed by Darin screaming getchar and EOF at Adam Majer. This then followed: AM>>> while((c=getchar()) != '\x27') DM> getchar and getch are completely different beasts... getchar() DM> will work with redirected input, getch won't. Also, getchar is ANSI C, and getch is a non-standard extension. There is a getch in most DOS compilers, and just to confuse things, the Curses standard defines getch as well, but this is different from the DOS call. Also, to use getch under UNIX, you would need to link with lib(n)curses. Chris --- FEddy/Linux v1.4* Origin: We're so glad to see so many of you lovely people h (2:257/135.6492) SEEN-BY: 396/1 632/0 371 633/260 267 270 371 634/397 635/506 728 639/252 SEEN-BY: 670/218 @PATH: 257/135 255/1 251/25 396/1 633/260 635/506 728 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.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™.