Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 12 Jan 2015 08:34:09 -0600 Newsgroups: comp.os.linux.development.apps Subject: Re: Printing from a C program in linux References: From: floyd@apaflo.com (Floyd L. Davidson) Organization: __________ Date: Mon, 12 Jan 2015 05:34:04 -0900 Message-ID: <87fvbgax0j.fld@barrow.com> User-Agent: gnus 5.10.6/XEmacs 21.4.15/Linux 2.6.19 Cancel-Lock: sha1:ORHRDtngYHC+/2HJpbqfGUoVFao= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 36 X-Trace: sv3-qCHMveuDJjyHNjjB1UD+v3k+CFT6s5DBfHs3PH7SZye22y//a+NHz9n/ICE6OwqY6lY3mxLRvHTM7mR!fAeZj8nT6WwldtZfH5/EHWjxyz4pEcz++co5qSWsZ83DItZ+Ly1UtL+iX7FWPA== X-Complaints-To: www.supernews.com/docs/abuse.html X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1960 Xref: csiph.com comp.os.linux.development.apps:766 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