This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Stdprn in GCC
- From: John Carter <john dot carter at tait dot co dot nz>
- To: David <decibel8 at charter dot net>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 23 Oct 2002 11:06:38 +1300 (NZDT)
- Subject: Re: Stdprn in GCC
On Tue, 22 Oct 2002, David wrote:
> Starting to learn C Programming all over again in Linux this time.
>
> The problem is that most books are for Windows/Dos also.
>
> 'stdprn' is not contained in stdio.h in GCC.
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.
--
John Carter Phone : (64)(3) 358 6639
Tait Electronics Fax : (64)(3) 359 4632
PO Box 1645 Christchurch Email : john.carter@tait.co.nz
New Zealand
Good Ideas:
Ruby - http://www.ruby-lang-org - The best of perl,python,scheme without the pain.
Valgrind - http://developer.kde.org/~sewardj/ - memory debugger for x86-GNU/Linux
Free your books - http://www.bookcrossing.com