> How do i change my output device when typing from
> screen to Printer?
> This is the scenario
> I have written a simple addition program in C and ask
> for the input
> when i execute a.out the input i give should be
> redirected to the printer as well as on the screen.
> Presently I am using
> # ./a.out > /dev/lp0
*snip*
You use the shell's I/O redirection faclities outside your main program.
This isn't exactly elegant.You must examine the dup2() call.

Regards,

-ah




-- 
_______________________________________________

http://mm.ilug-bom.org.in/mailman/listinfo/linuxers



Reply via email to