| delorie.com/archives/browse.cgi | search |
| From: | bernd AT asterix DOT gecko DOT de ("Bernd Prager") |
| Subject: | problem with g++, getc and '\n' |
| 18 Apr 1997 12:51:02 -0700 : | |
| Sender: | mail AT cygnus DOT com |
| Approved: | cygnus DOT gnu-win32 AT cygnus DOT com |
| Distribution: | cygnus |
| Message-ID: | <m0wIGjI-0002rxC.cygnus.gnu-win32@mail.gecko.de> |
| Reply-To: | bpr AT gecko DOT de |
| Original-To: | gnu-win32 AT cygnus DOT com |
| MIME-Version: | 1.0 |
| In-reply-to: | <3.0.32.19970417150159.0069c14c@mail.accesslan.com> |
| X-mailer: | Pegasus Mail for Win32 (v2.53/R1) |
| Original-Sender: | owner-gnu-win32 AT cygnus DOT com |
Hi,
following code compiled with g++ do not run correct in win95-bash:
while ((c=getc(id)) != '\n' && c != EOF)
if (i<max-1)
line[i++]=c;
line[i]='\0';
if (c==EOF)
return EOF;
else
return i;
getc is not waiting for a keystroke.
Any suggestions?
Thanks,
Bernd
_____________________________________________________________________
Bernd Prager
GECKO mbH; Wismarsche Str.3, 18057 Rostock; Germany
http://www.gecko.de
PGP Key fingerprint = 83 54 6A 3B 7A 9D 6C 0E F3 41 CE 99 11 30 B7 D6
public key by mailto:bpr AT gecko DOT de?Subject=SendPGPKey
_____________________________________________________________________
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |