Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!ginosko!uunet!munnari.oz.au!csc!ccadfa!usage!basser!nswitgould!fidogate From: garth_kidd%680.808@fidogate.fido.oz (Garth Kidd) Newsgroups: comp.lang.c Subject: Test of possible ACSGATE on net Message-ID: <16103@nswitgould.cs.uts.oz> Date: 9 Oct 89 01:52:04 GMT Sender: fido@nswitgould.cs.uts.oz Organization: A Fidonet node, gated through nswitgould.oz Lines: 22 Original to: csgtkidd@medusa.ua.oz This is a test message, but while I'm at it, just a small question: Can anyone think of a tighter way of coding a filter to strip spaces from the input stream than this? main() { char ch; for(;read(0,&ch,1)==1;write(1,&ch,(ch==' ')?0:1)) ; } Thankew for any help... gk --- * Origin: Australian BBS Registry (Opus 3:680/808)