Xref: utzoo comp.sys.ibm.pc.programmer:1765 comp.lang.c:29309 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ames!pacbell.com!pacbell!barn!everexn!roger From: roger@everexn.uucp (Roger House) Newsgroups: comp.sys.ibm.pc.programmer,comp.lang.c Subject: Re: Microsoft C,printf(), ansi,sys Message-ID: <1990Jun1.175912.24715@everexn.uucp> Date: 1 Jun 90 17:59:12 GMT References: <1479.26641e4f@miavx1.acs.muohio.edu> Organization: Everex Systems, Inc. Lines: 25 In <1479.26641e4f@miavx1.acs.muohio.edu> jfeldhouse@miavx1.acs.muohio.edu writes: >While using Microsoft C 5.1 I discovered >that anything I tried to print to the screen >using printf() didn't appear unless the >machine was using ansi.sys as a device driver. >Is this normally the case? or did I compile wrong? >Things that I sent to the screen using interupt 07 >worked fine. Things using printf() didn't show up. >please just mail me your suggestions >and thanks in advance >Jim Feldhouse I tried mailing this several times, but it didn't work. The output from printf is buffered. It does not go to the screen until the buffer is full or the file is closed. To force the current buffer contents to the screen use fflush(stdout). Thus, if you follow each printf with fflush, you will get what you want. (ansi.sys is not needed). Roger House