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,5a1c0a6cbd361842 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!news.glorb.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newspeer1.se.telia.net!se.telia.net!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn_Persson?= User-Agent: Thunderbird 1.5.0.4 (X11/20060614) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Is there an end of string like in C References: <1151691630.276880.203280@75g2000cwc.googlegroups.com> In-Reply-To: <1151691630.276880.203280@75g2000cwc.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Date: Fri, 30 Jun 2006 19:38:11 GMT NNTP-Posting-Host: 83.250.108.49 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1151696291 83.250.108.49 (Fri, 30 Jun 2006 21:38:11 CEST) NNTP-Posting-Date: Fri, 30 Jun 2006 21:38:11 CEST Organization: Telia Internet Xref: g2news2.google.com comp.lang.ada:5351 Date: 2006-06-30T19:38:11+00:00 List-Id: Chris L wrote: > In C, there is an end of string character ('\0'). Is there one in Ada? Null-terminated buffers are a very very poor substitute for arrays. They are the cause of a majority of all the security holes in computer systems. Of course we don't do that in Ada. Read here: http://en.wikibooks.org/wiki/Ada_Programming/Strings#Unbounded-length_string_handling -- Bj�rn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu