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 Path: g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!bcklog1.nntp.dca.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 30 Jun 2006 14:20:28 -0500 Date: Fri, 30 Jun 2006 20:20:26 +0100 From: Martin Dowie 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 Message-ID: NNTP-Posting-Host: 81.155.38.142 X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-yAcHsYxQ2Jl4HyFdSqECKTPONV2xwVoPRUhyfDZJu4uH2Hh8neUN7Jh7I03NypCZtF6PCNYQ94Rp0qK!FcHkWYahBCankL/DV2P7yHi9yovQh085E6dMdp8Q8CX8WTHSmY677Xl/Ab2INA== X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:5349 Date: 2006-06-30T20:20:26+01:00 List-Id: Chris L wrote: > In C, there is an end of string character ('\0'). Is there one in Ada? > Can you give me code that checks for it in an array? As Pascal points out, this really shows you haven't tried to answer this very simple question yourself. As a starter, I'll be more generous than Pascal and point you to http://www.adapower.com/ where you'll find some online books and tutorials. As an aside ask yourself, if /you/ were designing a language from scratch would you include "null terminated strings"? Are they a good idea? Cheers -- Martin