[Freeciv-Dev] Re: very simple specvecs
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Vasco Alexandre Da Silva Costa wrote:
Just malloc a chunk and store the size before the beggining of the array.
Then return a pointer to the beggining of the array. To know the size,
access the memory before the pointer to the beggining. That should do what
you want.
But specvecs aren't malloced. E.g. we have
foo_vector foo;
foo_vector_init(&foo);
rather than
foo_vector foo = foo_vector_new();
jason
|
|