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,a0833bbed8752e1f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: variable length strings References: <1861614.TWv5A9FgVL@linux1.krischik.com> <4178e979_1@baen1673807.greenlnk.net> <1195374.UMjBCk7lO1@linux1.krischik.com> <1154613.ipZcUgduzp@linux1.krischik.com> <1174011.lJ1dcgRM3Q@linux1.krischik.com> <1098814048.280053@master.nyc.kbcfp.com> <10z8k19febkic.16ex86io5uvwi.dlg@40tude.net> <1ok9c1htwcrmd.dta4w50brarb.dlg@40tude.net> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Thu, 28 Oct 2004 22:05:24 GMT NNTP-Posting-Host: 63.184.8.241 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1099001124 63.184.8.241 (Thu, 28 Oct 2004 15:05:24 PDT) NNTP-Posting-Date: Thu, 28 Oct 2004 15:05:24 PDT Xref: g2news1.google.com comp.lang.ada:5807 Date: 2004-10-28T22:05:24+00:00 List-Id: More FWIW: I implemented a binding to the C function fgets, which behaves similarly to Ada.Text_IO.Get_Line (stops at end of buffer or end of line; in latter case, skips line terminator), and implemented a Get_Line function using it. It exhibits the same behavior as a Get_Line function using Ada.Text_IO.Get_Line for the case of a last line that is not properly terminated and is a multiple of the buffer length. Win98/GNAT 3.15p. -- Jeff Carter "My mind is a raging torrent, flooded with rivulets of thought, cascading into a waterfall of creative alternatives." Blazing Saddles 89