Stdprn in GCC

John Carter john.carter@tait.co.nz
Tue Oct 22 15:06:00 GMT 2002


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



More information about the Gcc-help mailing list