Return to test-recallocarray.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
1.1 ! schwarze 1: #include <stdlib.h> ! 2: ! 3: int ! 4: main(void) ! 5: { ! 6: void *p; ! 7: ! 8: if ((p = calloc(2, 2)) == NULL) ! 9: return 1; ! 10: return !recallocarray(p, 2, 3, 2); ! 11: }