delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/24/16:25:29.2

From: ams AT ludd DOT luth DOT se (Martin Str|mberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Terminal Programming
Date: 24 Jul 1999 17:24:48 GMT
Organization: University of Lulea, Sweden
Message-ID: <7ncst0$d5u$1@news.luth.se>
References: <3798FE1B DOT AE7EEEC AT mindspring DOT com> <7nbre4$am$1 AT news DOT luth DOT se> <3799DB9E DOT 385E4ECD AT mindspring DOT com>
NNTP-Posting-Host: queeg.ludd.luth.se
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
Lines: 22
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Jon DeMarks (whatfor AT mindspring DOT com) wrote:
: > fflush(stdin) results in undefined behaviour. Don't do that.
: >
: > (Another minor observation is that it compilable, but not linkable
: > (and thus not runable) (sd() undefined).)
: >
: > Kokkonen, Symphony No. 4,
: >
: >                                                         MartinS
: 
:   you have to rename the fuction to main() to compile.  and the
: fflush(stdin); doesn't make a differance.

Well, as "undefined behaviour" could be crashing your nice program,
don't come crying to us when it happens.

(The minor nitpick: And sd()?)


Kokkonen, Symphony No. 4,

							MartinS

- Raw text -


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