delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/28/08:45:22

From: "Damien" <damien@%poe.org>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problems running a simple C program using RHIDE on djgpp
Date: 28 Oct 1997 09:33:37 GMT
Organization: Beyond Reality
Lines: 17
Message-ID: <01bce383$d4b53e80$348562cf@damien>
References: <01bce339$8b185540$a32285ce AT default>
NNTP-Posting-Host: phx-ts18-19.goodnet.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Carlos Matos <cmatos AT sprintmail DOT com> wrote in article
<01bce339$8b185540$a32285ce AT default>...
> Hi there!
> This program is suppose to keep on reading from the standard imput file
> until the user press CTRL-D which should produce the end-of-file (eof). 
> Then the program prints the length of the character string.  The program
> works well until I press CTRL-D.  I trace the program using RHIDE and at
> that time s gets the value of \004 which is not equal to eof.  Therefore

Ctrl+D is EOF on UNIX... in DOS, it's Ctrl+Z.  I would imagine this is
what's causing your problem.

-- 
-=Damien=-
(remove the % from my address to email me)
http://www.goodnet.com/~ej70339/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019