*BSD News Article 78226


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!news2.acs.oakland.edu!news.tacom.army.mil!ulowell.uml.edu!tribune.meitca.com!bloom-beacon.mit.edu!news.mathworks.com!news.kei.com!news.texas.net!www.nntp.primenet.com!nntp.primenet.com!howland.erols.net!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Printing problem with Okidata OLE600.
Date: 12 Sep 1996 11:38:14 +0100
Organization: Coverform Ltd.
Lines: 23
Message-ID: <518p6m$br@anorak.coverform.lan>
References: <01bb9e93$2739c860$9bc4abc7@glen> <3234727C.6028@www.play-hookey.com> <01bb9f94$4e7e5920$7ac4abc7@glen> <3235D81C.47E6@www.play-hookey.com>
NNTP-Posting-Host: localhost.coverform.lan
X-NNTP-Posting-Host: awfulhak.demon.co.uk
X-Newsreader: TIN [version 1.2 PL2]

Ken Bigelow (kbigelow@www.play-hookey.com) wrote:
[...]
: #include <stdio.h>
:
: char thisChar;			/*Define a variable		*/
  ^^^^
:
: thisChar = getchar();		/*Get character from stdin	*/
: if (thisChar == '\x0a') {	/*Got LF?			*/
: 	putchar('\x0d');	/*If yes, send CR first		*/
: }
: putchar(thisChar);		/*In any case send the character*/
[.....]

$ fgrep getchar /usr/include/stdio.h
int      getchar __P((void));
#define getchar()       getc(stdin)

Shame on you :(

--
Brian <brian@awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour....