Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.os.linux.development.apps > #766
| Newsgroups | comp.os.linux.development.apps |
|---|---|
| Subject | Re: Printing from a C program in linux |
| References | <B79FD1EF.4922%jenco@wol.be> <fab8e3f2-b94b-484b-8d42-303c6ef86b23@googlegroups.com> |
| From | floyd@apaflo.com (Floyd L. Davidson) |
| Organization | __________ |
| Date | 2015-01-12 05:34 -0900 |
| Message-ID | <87fvbgax0j.fld@barrow.com> (permalink) |
mtkhusro92@gmail.com wrote:
>On Tuesday, 14 August 2001 22:14:45 UTC-7, Jenco wrote:
>> Hi,
>>
>> I'm making a program in C for linux but an important thing i can't find in
>> my books is how to print from your C program
>>
>>
>> any hint,link or tutorial is welcome
>>
>>
>>
>> thaaaaaaaaaaaaaaaaanx Marco
>
>any help?
What do you mean by "print from your C program"? Send
output to the screen?
printf("Hello world!\n");
Or do you mean how to print an image by sending it to
the printer?
system("lpr foo.jpg");
or
popen("lpr foo.jpg", "r");
All of the above are "crude", and depending on what you
are actually doing will need a great deal of refinement.
--
Floyd L. Davidson http://www.apaflo.com/
Ukpeagvik (Barrow, Alaska) floyd@apaflo.com
Back to comp.os.linux.development.apps | Previous | Next — Previous in thread | Next in thread | Find similar
Re: Printing from a C program in linux mtkhusro92@gmail.com - 2015-01-12 05:48 -0800
Re: Printing from a C program in linux Jan Panteltje <panteltje@yahoo.com> - 2015-01-12 14:33 +0000
Re: Printing from a C program in linux floyd@apaflo.com (Floyd L. Davidson) - 2015-01-12 05:34 -0900
Re: Printing from a C program in linux Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-01-12 10:56 -0500
Re: Printing from a C program in linux Jasen Betts <jasen@xnet.co.nz> - 2015-01-13 06:38 +0000
Re: Printing from a C program in linux Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2015-01-13 17:28 +0200
csiph-web