comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Dowie <martin.dowie@btopenworld.com>
Subject: Re: Is there an end of string like in C
Date: Fri, 30 Jun 2006 20:20:26 +0100
Date: 2006-06-30T20:20:26+01:00	[thread overview]
Message-ID: <jZidnfVDdvrg5DjZRVnyuQ@bt.com> (raw)
In-Reply-To: <1151691630.276880.203280@75g2000cwc.googlegroups.com>

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



  parent reply	other threads:[~2006-06-30 19:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1151691630.276880.203280@75g2000cwc.googlegroups.com>
2006-06-30 18:57 ` Is there an end of string like in C Pascal Obry
2006-06-30 19:20 ` Martin Dowie [this message]
2006-06-30 19:24 ` Gautier
2006-06-30 19:38 ` Björn Persson
2006-06-30 20:12 ` Jeffrey R. Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox