From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1d321b3a6b8bcab2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-01-25 04:14:43 PST Newsgroups: comp.lang.ada Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!gatech!swrinde!pipex!uunet!world!bobduff From: bobduff@world.std.com (Robert A Duff) Subject: Re: "Subtract C, add Ada" Message-ID: Organization: The World Public Access UNIX, Brookline, MA References: <3fo2ot$su2@miranda.gmrc.gecm.com> <1995Jan23.154631.6702@sei.cmu.edu> <3g32li$5jd@Starbase.NeoSoft.COM> Date: Wed, 25 Jan 1995 12:14:43 GMT Date: 1995-01-25T12:14:43+00:00 List-Id: In article <3g32li$5jd@Starbase.NeoSoft.COM>, Samuel Mize wrote: >This bit of code is based on the assumption that there is a null at >the end of your string -- oh, but this is a file read. C guys: >does C return a null if you getchar at EOF? Or is this a misplaced >array idiom? I believe getchar returns -1 at eof. - Bob