Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Detecting an empty line in stdin

Reply
Thread Tools

Detecting an empty line in stdin

 
 
Ike Naar
Guest
Posts: n/a
 
      01-14-2010
In article <(E-Mail Removed)>,
Peter Nilsson <(E-Mail Removed)> wrote:
>(E-Mail Removed) (Ike Naar) wrote:
>> 3000 numbers have 2999 differences.

>
>Which is why the OP had the next line...
>
> > #define MAXDIFF 2999

>
>Which doesn't alter the fact that the OP only
>allocates storage for 2999 input integers in
>the subsequent code, despite the specs saying
>there may be up to 3000 such integers.


You're right; I should have read the OP's code more carefully before posting.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
peek at stdin, flush stdin Johnathan Doe C Programming 5 05-17-2013 04:30 PM
How to pass stdin of a C++ program to the stdin of a process createdwith ShellExecute() Ben C Programming 2 08-29-2009 09:47 PM
STDIN, OUT, ERR and $stdin, out, err - Differences? Terry Cooper Ruby 7 06-09-2009 05:48 AM
Reading from stdin then launching a program that reads from stdin strange behaviour Stefano Sabatini Perl Misc 6 07-29-2007 10:38 PM
Reading stdin once confuses second stdin read Charlie Zender C Programming 6 06-21-2004 01:39 PM



Advertisments