ppc_array, a C code which provides both typed and generic interfaces to allocate and free memory for vectors and matrices, from Rouben Rostamian's "Programming Projects in C";
Simple functions are provided for creating and freeing vectors and matrices of type double, float, and int.
Generic functions are provided, which create and free vectors and matrices of any type.
Getting the C preprocessor text to execute correctly was a miserable job!
The information on this web page is distributed under the MIT license.
ppc_array is available in a C version.
ppc_xmalloc, a library which manages the allocation of memory, from Rouben Rostamian's "Programming Projects in C";