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-Thread: 103376,8d5bda3619cce0f8 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!m42g2000yqb.googlegroups.com!not-for-mail From: christoph.grein@eurocopter.com Newsgroups: comp.lang.ada Subject: Re: C getchar() functionality in Ada Date: Wed, 18 Feb 2009 03:42:49 -0800 (PST) Organization: http://groups.google.com Message-ID: <6ce2e336-a054-4a68-bc15-34976c98d6cd@m42g2000yqb.googlegroups.com> References: <4999ce31$0$90266$14726298@news.sunsite.dk> <3apeng.mtg.ln@hunter.axlog.fr> <499b1430$0$90267$14726298@news.sunsite.dk> NNTP-Posting-Host: 80.156.44.178 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1234957369 19601 127.0.0.1 (18 Feb 2009 11:42:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 18 Feb 2009 11:42:49 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m42g2000yqb.googlegroups.com; posting-host=80.156.44.178; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 webwasher (Webwasher 6.8.3.4214) Xref: g2news2.google.com comp.lang.ada:4664 Date: 2009-02-18T03:42:49-08:00 List-Id: On Feb 18, 8:43=A0am, Jean-Pierre Rosen wrote: > Look_Ahead has a parameter to tell when you are at end of line. The > behaviour of Get_Immediate is less clear from the RM. Get_Immediate falls a bit out of Text_IO, since it does not update the column, line and page counts. It returns the next character in the file. If EoL is coded as characters, it will return them, else it will silently skip to the next line and return the first character. It simply returns any Control characters that might be in the file, other than the Get routines.