comp.lang.ada
 help / color / mirror / Atom feed
From: "Björn Persson" <spam-away@nowhere.nil>
Subject: Re: Is there an end of string like in C
Date: Fri, 30 Jun 2006 19:38:11 GMT
Date: 2006-06-30T19:38:11+00:00	[thread overview]
Message-ID: <D4fpg.6891$E02.2175@newsb.telia.net> (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?

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



  parent reply	other threads:[~2006-06-30 19:38 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
2006-06-30 19:38 ` Björn Persson [this message]
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