From: | Shinda |
Date: | 25 Jun 2000 at 20:18:36 |
Subject: | Re: Allocating Memory problems |
--- In amiga-c@egroups.com, Alexander Niven-Jenkins <anj@c...> wrote:
> It depends whichroutines your using as some append a \0 on the
> end automatically for you and so expect a size of strlen( string )
> + 1.
What I want to use is AllocVec() and the string is really data and I
do not want to use the char way since I want to be able to free
memory as and when needed. No what I mean is say the data is of
length 30 and I use AllocVec with the 30 as size then can I access
memdata[30] or would I need to use AllocVec with a size of 31 to
access memdata[30].
Shinda
------------------------------------------------------------------------
Spending too much calling friends all over the world? Join beMANY!
and pay less each month.
http://click.egroups.com/1/4259/1/_/451227/_/961960720/
------------------------------------------------------------------------