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!stamper.news.atl.earthlink.net!newsread2.news.atl.earthlink.net.POSTED!14bb18d8!not-for-mail Sender: mheaney@MHEANEYX200 Newsgroups: comp.lang.ada Subject: Re: variable lenght strings References: <1209757.RtbsXkycWi@linux1.krischik.com> From: Matthew Heaney Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 22 Oct 2004 13:01:24 GMT NNTP-Posting-Host: 64.185.133.124 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.atl.earthlink.net 1098450084 64.185.133.124 (Fri, 22 Oct 2004 06:01:24 PDT) NNTP-Posting-Date: Fri, 22 Oct 2004 06:01:24 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: g2news1.google.com comp.lang.ada:5634 Date: 2004-10-22T13:01:24+00:00 List-Id: Martin Krischik writes: > > There's a way using the standard Get_Line, explained in AdaPower. > > Which is buggy- It will fail if the length of the last line is a > multiple of buffer length! I once send a correction but is was > ignored. Can you explain this problem in more detail? The algorithm I showed in my previous post should work irrespective of the length of the input line.