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

From: mert0407 AT sable DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Printing (IBM)
Date: 10 May 1997 14:35:13 GMT
Organization: Oxford University, England
Lines: 15
Message-ID: <5l2131$m37@news.ox.ac.uk>
References: <337419d3 DOT 2151757 AT news DOT jaring DOT my>
NNTP-Posting-Host: sable.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Phuah Yee Keat (phuah AT pl DOT jaring DOT my) 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?

My printer has been broken for a long time, and I've never tested it, but
IIRC you should be able to fprintf to stdprn, like this: 

fprintf(stdprn,"Hello World!\n");

HTH

-- 
George Foot <mert0407 AT sable DOT ox DOT ac DOT uk>
Merton College, Oxford

- Raw text -


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