From: mathew Date: 2005-09-16T00:14:55+09:00 Subject: Re: array sharing Eric Mahurin wrote: >The first #unshift would malloc some extra capacity to the left of the array just >like is done now to the right of the array. > You can use realloc to make an existing allocated chunk of memory larger, but it always extends rightwards. How do you allocate extra capacity to the left of an allocated chunk? i.e. is your solution portable? mathew