Re: Is there an end of string like in C
- From: Martin Dowie <martin.dowie@xxxxxxxxxxxxxxx>
- Date: Fri, 30 Jun 2006 20:20:26 +0100
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
.
- References:
- Is there an end of string like in C
- From: Chris L
- Is there an end of string like in C
- Prev by Date: Re: Is there an end of string like in C
- Next by Date: Re: Is there an end of string like in C
- Previous by thread: Re: Is there an end of string like in C
- Next by thread: Re: Is there an end of string like in C
- Index(es):
Relevant Pages
|