What I believe Wei Gee was trying to suggest is to contain the strings
entirely in the struct:
typedef struct
{
bool mybool;
char one[16];
char two[16];
char three[16];
} MyStruct;
Of course, this will not work if you don't know the maximum length of the
string. Also, it wastes memory if one of the strings is much shorter than
the maximum.
Eric W. Sirko
Softworks Solutions, LLC
"Stephen A. Cochran" <[EMAIL PROTECTED]> wrote in message
news:51133@palm-dev-forum...
>
> --- "Ng Wei Gee" wrote:
> What I suggest here is that it would be better to declare your strings as
> arrays rather than pointers.
> --- end of quote ---
>
> This doesn't seem like it would solve the problem to me, since an array is
just
> a pointer to the first element in the array. Without having a lock on the
> memory, it could be moved.
>
> Steve Cochran
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/