/* this shows checking memory ... both on a good pointer and a non-good one */ #include "mk.h" MALLOC_CHECK_DECL(); int main(void) { char *ptr = MK(1); MALLOC_CHECK_MEM(ptr); MALLOC_CHECK_MEM(ptr + 1); return (EXIT_SUCCESS); }