How can I direct output to the printer?
Under Unix, either use popen (see question 19.30) to write to the lp or lpr program, or perhaps open a special file like /dev/lp. Under MS-DOS, write to the (nonstandard) predefined stdio stream stdprn, or open the special files PRN or LPT1.
References:
PCS Sec. 5.3 pp. 72-74
Read sequentially: prev next up top
This page by Steve Summit // Copyright 1995 // mail feedback