Posted on 2000-04-28
Last Modified: 2010-04-15
How do you print to a network printer or to 2 printers at a time ?  easily???

I know stdprn goes to lpt1 so how do you do it to a non lpt like in my example??

Question by:csindorf
LVL 10

Accepted Solution

rbr earned 30 total points
ID: 2772787
Which OS, how are the printer accessable,...

In general you can open a printer with

fp=fopen ("/dev/lpx","r");

fp=fopen ("lptx:","r");

if the printer has a device assigned.

Author Comment

ID: 2780950

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
mixing C++ and C code elegantly 10 156
Pointer in one class to member in another 6 121
Read file descriptor 3 in C 14 107
How to learn Linux? 10 61
Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question