comp.lang.ada
 help / color / mirror / Atom feed
From: "DuckE" <nospam_steved94@home.com>
Subject: Re: Variable length string
Date: Tue, 14 Aug 2001 03:18:22 GMT
Date: 2001-08-14T03:18:22+00:00	[thread overview]
Message-ID: <2M0e7.12237$vW2.6614303@news1.sttln1.wa.home.com> (raw)
In-Reply-To: 9l82gv$j83$1@news.mch.sbs.de

If you're new to Ada, I suggest you browse through the facilities built into
the standard Ada libraries.

http://www.ada-auth.org/~acats/arm-html/RM-A.html

For the task at hand, I suggest you have a look at:
  Ada.Strings.Unbounded
 - or -
  Ada.Strings.Bounded


SteveD

"Shitij" <shitij.sah@sisl.co.in> wrote in message
news:9l82gv$j83$1@news.mch.sbs.de...
> Hi,
> Iam new to ADA.I just wanted to know how do you define a variable length
> string.I have declared a string array of length say a size of 20.But if I
> use get and pass this string as an arguement,then unless and until I fill
> this with exactly 20 characters my program is not working.How to overcome
> this?
> Iam using the below structure
>
> type list;
>  type pList is access list;
>  type list is
> record
>    data:integer;
>    str:string(1 .. 20);
>    next:pList:=NULL;
>   end record;
>
>





  parent reply	other threads:[~2001-08-14  3:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-13  8:19 Variable length string Shitij
2001-08-13 10:20 ` Petter Fryklund
2001-08-13 10:40 ` Des Walker
2001-08-13 14:31   ` Des Walker
2001-08-13 15:07     ` Larry Kilgallen
2001-08-13 13:05 ` Larry Kilgallen
2001-08-13 20:04   ` James Rogers
2001-08-14  3:18 ` DuckE [this message]
2001-08-15 21:27 ` file13
replies disabled

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