A library to test handling of C library API error returns