delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/12/13:10:49

Date: Mon, 12 May 1997 13:09:59 -0400 (EDT)
From: "Art S. Kagel" <kagel AT ns1 DOT bloomberg DOT com>
To: Phuah Yee Keat <phuah AT pl DOT jaring DOT my>
Cc: djgpp AT delorie DOT com
Subject: Re: Printing (IBM)
In-Reply-To: <337419d3.2151757@news.jaring.my>
Message-Id: <Pine.D-G.3.91.970512130844.24572C-100000@dg1>
Mime-Version: 1.0

On Sat, 10 May 1997, Phuah Yee Keat wrote:

> Hi,
> How to print something unformatted to the printer, just simple text,
> using DJGPP, is there any classes or libraries that I can use?
> Thanx in advance
> Phuah
> 

Just open file "LPT1" or "PRN" in binary mode and write to it:

   PRINTER=fopen("LPT1", "wb" );

   fwrite( ... );


Art S. Kagel, kagel AT bloomberg DOT com

- Raw text -


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