1  #include <stdlib.h>
       2  
       3  struct ret
       4  {
       5    int **array;
       6  };
       7  
       8  struct ret *allocate_stuff(void)
       9  {
      10    struct ret *ret;
      11  
      12    ret = calloc(1, sizeof (struct ret));
      13    if (!ret) {
      14      abort();
      15    }
      16  
      17    ret->array = calloc (10, sizeof(int *));
      18    if (!ret->array) {
      19      abort();
      20    }
      21  
      22    return ret;
      23  }