🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4840

Need help with fprintf(stdprn,format,arg)

#4840
From: JACKIE MILLER
Date: Wed, 28 Feb 1996 16:43
18 lines
873 bytes
This short c program doesn't seem to work. I'm runiing a 486 clone with 
Borland Turbo C.

#include>stdio.h>
main()
{
float f = 2.0134;
fprintf(stdprn, "Print this on the printer\r\n");
fprintf(stdprn, "and now some numbers: \r\n");
fprintf(stdprn, "The square of %f is %f",f,f*f);
fprintf(stdprn, "\f"); /**form feed**/
}

any help with redirecting out to the printer would be appreciated.

Thanks

Kevin.
Technical Details
Message-ID: <4h20na$6ps@baja.pacificrim.net>
Path: arc1-ca.pugleaf.net!baja.pacificrim.net!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!baja.pacificrim.net!news
From: JACKIE MILLER <MSIMONDS@MAIL.PACIFICRIM.NET>
Newsgroups: comp.std.c
Subject: Need help with fprintf(stdprn,format,arg)
Date: 28 Feb 1996 16:43:22 GMT
Organization: MCI
Message-ID: <4h20na$6ps@baja.pacificrim.net>
NNTP-Posting-Host: whatcom-ppp17.pacificrim.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.22 (Windows; U; 16bit)