Stdprn in GCC

John Carter
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 :
New Zealand

Good Ideas:
Ruby                 - http://www.ruby-lang-org - The best of perl,python,scheme without the pain.
Valgrind             - - memory debugger for x86-GNU/Linux
Free your books      -

More information about the Gcc-help mailing list