printer streams?

A

adomplayer

Ten thousand and one apologies if this is off-topic (hard to tell with
this group), but,

How do you print out to a printer stream in c?
 
V

Vladimir S. Oka

Ten thousand and one apologies if this is off-topic (hard to tell with
this group), but,

I don't actually think it is, if you follow it closely enough,
for long enough.
How do you print out to a printer stream in c?

There is no such thing as a printer stream in C, so no you can't.

Cheers

Vladimir
 
K

Keith Thompson

Ten thousand and one apologies if this is off-topic (hard to tell with
this group), but,

How do you print out to a printer stream in c?

Yes, it's off topic; it depends on the system.
 
C

CBFalconer

Ten thousand and one apologies if this is off-topic (hard to tell
with this group), but,

How do you print out to a printer stream in c?

You do whatever is necessary on your system to make the printer
appear as a text stream. That part is off-topic here, being system
dependant. Having done so, you will have a suitable <name> to
use. You can then:

FILE *f = fopen(<name>, "w");

if (f) goaheadandwriteto(f);

--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <http://cfaj.freeshell.org/google/>
 
M

Martin Ambuhl

Ten thousand and one apologies if this is off-topic (hard to tell with
this group), but,

How do you print out to a printer stream in c?

Open the printer with fopen(); write to the printer with fprintf().
 
K

Keith Thompson

Martin Ambuhl said:
Open the printer with fopen(); write to the printer with fprintf().

That may not be possible on all systems; the printer isn't necessarily
available via a file name.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,173
Messages
2,570,937
Members
47,481
Latest member
ElviraDoug

Latest Threads

Top