www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/16/01:47:48

From: davecook AT home DOT com (David M. Cook)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Is there a standard easy way to print to a printer?
References: <706j31$rdu AT ds2 DOT acs DOT ucalgary DOT ca>
Organization: http://www.kernel-panic.com/links/devel.html
Message-ID: <slrn72dn7q.7n0.davecook@rama.escnd1.sdca.home.com>
User-Agent: slrn/0.9.5.3 (UNIX)
Lines: 12
Date: Fri, 16 Oct 1998 05:43:23 GMT
NNTP-Posting-Host: 24.0.189.179
NNTP-Posting-Date: Thu, 15 Oct 1998 22:43:23 PDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Thu, 15 Oct 1998 22:46:22 -0600, Tim <tssymanc AT ucalgary DOT ca> wrote:

>	I was wondering if somebody could tell me if there was a standard
>easy way to print text to a standard text printer; is there just a
>"stream" or something? (And if there's not, I was hoping somebody could
>explain to me how else I could do it; All I want to do is to be able to
>print out some really basic text, nothing fancy).

You can fopen prn: and send stuff with fwrite or fprintf.  When you're done
send a form feed ('\f').

Dave Cook

- Raw text -


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