R
Richard Heathfield
(e-mail address removed) said:
But bear in mind that alloca() may not be available on your system. It is
not a standard C library function.
You can allocate on the stack and not on the heap.
in this case the memory will be freed automatically
when leaving the function.
See 'man alloca'
But bear in mind that alloca() may not be available on your system. It is
not a standard C library function.