From: "Sean Pajot" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: Small problem with instruction sorting Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.0810.800 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.0810.800 Message-ID: Date: Mon, 8 Feb 1999 08:34:12 -0500 NNTP-Posting-Host: 142.194.222.198 X-Trace: cabot.ops.attcanada.net 918480926 142.194.222.198 (Mon, 08 Feb 1999 13:35:26 GMT) NNTP-Posting-Date: Mon, 08 Feb 1999 13:35:26 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com DJGPP does not reorder commands. This is the result of buffering data, like when a file is buffered when writing to save time if you make hundreds of calls to fputc instead of one call to fwrite. Either add "\n" to the end of your string to force the buffer to be flushed, or call fflush(stdout); immediately after the printf command. #include #include main() { printf("HELLO WORLD. PRESS KEY"); fflush(stdout); while(!bioskey(1)); exit(0); } ------ Sean Pajot To reply, change "@notmail.com" to "@hotmail.com"