delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/12/14:21:55

From: "Damian Yerrick" <mail DOT me DOT at DOT your DOT own DOT risk AT pineight DOT 8m DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: text output problem
Date: Sun, 12 Sep 1999 11:32:49 -0500
Organization: Rose-Hulman Institute of Technology
Lines: 23
Message-ID: <7rgkn4$91l$1@solomon.cs.rose-hulman.edu>
References: <37DBCE71 DOT 2EA82E24 AT iol DOT cz>
NNTP-Posting-Host: yerricde.laptop.rose-hulman.edu
X-Trace: solomon.cs.rose-hulman.edu 937154084 9269 137.112.205.146 (12 Sep 1999 16:34:44 GMT)
X-Complaints-To: news AT cs DOT rose-hulman DOT edu
NNTP-Posting-Date: 12 Sep 1999 16:34:44 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Vladislav Straka <vstraka AT iol DOT cz> wrote in message
news:37DBCE71 DOT 2EA82E24 AT iol DOT cz...
> Hi,
>
>         i use to printing text printf but it's line buffered  and this
> make some problem ...

fflush(stdout);
will flush printf()'s line buffer.

>         here is another function cprintf it's not buffered but the \n
> don't work here!

With cputs() and cprintf(), you must use \r\n instead of \n
However, conio.h functions such as cprintf() are not part of
the ANSI C standard; they are implementation defined.

Damian Yerrick
http://come.to/yerrick
http://pineight.webjump.com/


- Raw text -


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