Hi,
making my first steps in programing linux in c (after reading some books and
howto's) i wonder which would be the common (best) way to print text to a
printer.
I would prefer to print to the printer in the same way I print to stdout
(using printf or puts), but I don't want to use the '/dev/lp'-file because
of the fact that a non-root-user could not access it and I dont want to
completly redirect stdout as the program prints to both the display and the
printer.
I would be happy if i could pass the text to the lpd and let it handle the
rest, but generating a file on the disk and printing it via the lpr-command
seems unprofessional to me.
It would be great if someone could give me some helping words or even a
short code-example.
Brar