www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/09/12:53:00

From: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Centering printf text on a 80 column screen
Date: Wed, 09 Apr 1997 12:46:11 +0100
Organization: Lehrstuhl fuer Stroemungsmechanik
Message-ID: <334B8183.2781@LSTM.Ruhr-UNI-Bochum.De>
References: <334aed58 DOT 5263168 AT news DOT mindspring DOT com>
NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de
Mime-Version: 1.0
Lines: 34
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

dabrownz AT mindspring DOT com wrote:
> 
> How do you center printf text on a DOS screen?  I can't find anyway to
> do this other than using tabs and spaces (very annoying).  What is the
> 'correct' way to do it?  Do I have to use 'cprintf' or some other
> keyword or include another library?  I'd would really appriciate any
> help, Thanks.

Apart from that some other posters gave a few 
solutions, it might be helpful for you to check
the snippets collection. It is a big bunch of C 
fragments and complete programs that cover 
some every day problems. You can find it on your
local simtel mirror, I memory serves right under msdos/c.

Although some problems are covered by libc and are
obsolete in a 32 Bit environment, it is often a good
place to check for solutions.


-- 
Ciao
Tom

*************************************************************
* Thomas Demmer                                             *
* Lehrstuhl fuer Stroemungsmechanik                         *
* Ruhr-Uni-Bochum                                           *
* Universitaetsstr. 150                                     *
* D-44780  Bochum                                           *
* Tel: +49 234 700 6434                                     *
* Fax: +49 234 709 4162                                     *
* http://www.lstm.ruhr-uni-bochum.de/~demmer                *
*************************************************************

- Raw text -


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