blob: ad9bfc94ad4c450f48afc6892037146f4f5ceef9 [file] [log] [blame]
#include <stdlib.h>
struct ret
{
int **array;
};
struct ret *allocate_stuff(void)
{
struct ret *ret;
ret = calloc(1, sizeof (struct ret));
if (!ret) {
abort();
}
ret->array = calloc (10, sizeof(int *));
if (!ret->array) {
abort();
}
return ret;
}