mallmock - a mocking library for malloc() This library provides an API for testing how a software component handles failures of malloc() (and its kin).