summaryrefslogblamecommitdiffstats
path: root/test-recallocarray.c
blob: e0c60d7118f8b94719e18fa5efadb3daf9b36833 (plain) (tree)
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);
}