🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4848

Re: Need help with fprintf(stdprn,format,arg)

#4848
From: JACKIE MILLER
Date: Fri, 01 Mar 1996 02:55
27 lines
1426 bytes
KEVIN MILLER <MSIMONDS@MAIL.PACIFICRIM.NET> wrote:
>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.
>

First, to all who took the time to reply, my thanks and my apologies.
To those who read and did not reply, also my apologies. As a rookie
in the game of life I have a lot to learn not the least of which is the
correct forum for questions of this nature. I was not, at the time, aware
that this newsgroup was for ANSI C only. I am now and promise not to
darken your doors again. Mea Culpa Mea Culpa etc. Sorry and Thanks....
Technical Details
Message-ID: <4h5ovt$dih@baja.pacificrim.net>
Path: arc1-ca.pugleaf.net!baja.pacificrim.net!news
References: <4h20na$6ps@baja.pacificrim.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!baja.pacificrim.net!news
From: JACKIE MILLER <jmiller@MAIL.PACIFICRIM.NET>
Newsgroups: comp.std.c
Subject: Re: Need help with fprintf(stdprn,format,arg)
Date: 1 Mar 1996 02:55:57 GMT
Organization: MCI
Message-ID: <4h5ovt$dih@baja.pacificrim.net>
References: <4h20na$6ps@baja.pacificrim.net>
NNTP-Posting-Host: whatcom-ppp34.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)