From: Gautier <gautier@fakeaddress.nil>
Subject: Re: Is there an end of string like in C
Date: Fri, 30 Jun 2006 21:24:43 +0200
Date: 2006-06-30T21:24:43+02:00 [thread overview]
Message-ID: <44a57a83$1_2@news.bluewin.ch> (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?
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!
next prev parent reply other threads:[~2006-06-30 19:24 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
2006-06-30 19:24 ` Gautier [this message]
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