1 2 3 4 5 6 7 8 9 10 11
#include <stdlib.h> int main(void) { void *p; if ((p = calloc(2, 2)) == NULL) return 1; return !recallocarray(p, 2, 3, 2); }