🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #578

Re: Microsoft C,printf(), ansi,sys

#578
From: Roger House
Date: Fri, 01 Jun 1990 17:59
25 lines
1352 bytes
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
Technical Details
Message-ID: <1990Jun1.175912.24715@everexn.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ames!pacbell.com!pacbell!barn!everexn!roger
References: <1479.26641e4f@miavx1.acs.muohio.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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