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-7-bit Date: Fri, 30 Jun 2006 21:24:43 +0200 From: Gautier User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) 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: 7bit NNTP-Posting-Host: 83.77.190.47 X-Original-NNTP-Posting-Host: 83.77.190.47 Message-ID: <44a57a83$1_2@news.bluewin.ch> X-Trace: news.bluewin.ch 1151695491 83.77.190.47 (30 Jun 2006 21:24:51 +0200) Organization: Bluewin AG Complaints-To: abuse@bluewin.ch X-Original-NNTP-Posting-Host: 127.0.0.1 Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!news.ip-plus.net!newsfeed.ip-plus.net!news.bluewin.ch!not-for-mail Xref: g2news2.google.com comp.lang.ada:5350 Date: 2006-06-30T21:24:43+02:00 List-Id: Chris L wrote: > In C, there is an end of string character ('\0'). Is there one in Ada? No, this is a C specialty - and also a typical nuisance of C... In Ada you know the array bounds, and a string is an array of Character. > Can you give me code that checks for it in an array? s'Length give you the string length, without any loop, or the risk of a missing end-of-string character. > Thank you, > Christopher Lusardi HTH, Gautier _______________________________________________________________ Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site!