X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <47EC2EB5.C0C1AD19@yahoo.com> Date: Thu, 27 Mar 2008 18:33:09 -0500 From: CBFalconer Organization: Ched Research http://cbfalconer.home.att.net X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: lpr for djgpp? References: <47EAE3C2 DOT 1B9F1323 AT yahoo DOT com> <47EC0DA5 DOT 25D02455 AT yahoo DOT com> <47ec32ab DOT 773895945 AT localhost> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 27 NNTP-Posting-Date: 28 Mar 2008 14:28:08 GMT X-Complaints-To: abuse AT teranews DOT com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Scott wrote: > wrote: > >> #include >> >> int main(void) { >> int ch; >> >> while (EOF != (ch = getc(stdin))) putc(ch, stdout); >> return 0; >> } >> >> should do it. Exercise it by setting stdout to point to the >> printer. Something like "lpr > LPT". > > In that case, why not write > > while (EOF != (ch = getc(stdin))) putc(ch, stdprn); Because then you can't control it at runtime. And stdprn is not known in the C standard. -- [mail]: Chuck F (cbfalconer at maineline dot net) [page]: Try the download section. -- Posted via a free Usenet account from http://www.teranews.com