From: David <decibel8@charter.net>
To: gcc-help@gcc.gnu.org
Cc: John Carter <john.carter@tait.co.nz>
Subject: Re: Stdprn in GCC
Date: Tue, 22 Oct 2002 16:13:00 -0000 [thread overview]
Message-ID: <3DB5DB25.6080001@charter.net> (raw)
John Carter wrote:
>If you want it to come out (directly) /dev/lp0 (the line printer port)
>just open that and fire away.
>
>Either that stuff it in a file and invoke "lpr fileName" at a later stage.
>
>You can also pipe either stdout to "lpr" or fork and pipe to lpr.
>
>A good reference source if the Linux Documentation Project (ask google)
>and in particular the Linux Programmers Guide.
>
>
>
>
I searched google and haven't came up with anything yet, tried putting /dev/lp0
in there and piping it to lpr. Just get errors about it.
> page = 0; line = 1; do_heading( argc[1] ); while( fgets(
> buffer, 256, fp ) != NULL ) { if( line % 55 == 0 )
> do_heading( argc[1] ); fprintf( stdprn, "%4d:\t%s",
> line++, buffer ); } fprintf( stdprn, "\f" ); fclose(fp);
> return 0; } /* Start function */ void do_heading( char *filename )
> { page++; if( page > 1) fprintf( stdprn, "\f");
> fprintf( stdprn, "Page: %d, %s\n\n", page, filename ); }
next reply other threads:[~2002-10-22 23:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-22 16:13 David [this message]
2002-10-23 13:35 ` John Carter
-- strict thread matches above, loose matches on Subject: below --
2002-10-22 14:41 David
2002-10-22 15:06 ` John Carter
2002-10-22 15:08 ` bjorn rohde jensen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3DB5DB25.6080001@charter.net \
--to=decibel8@charter.net \
--cc=gcc-help@gcc.gnu.org \
--cc=john.carter@tait.co.nz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).