xalloc is a memory allocation library with error checking. It contains wrappers including error checking for memory allocating C-functions.