Guest User

Untitled

a guest
Jul 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1.     if (len % 8 == 0) { // Allocate data in 8-piece slabs
  2.         void *new_data;
  3.         int *new_sizes;
  4.         printf("arg_pack has no capacity\n");
  5.         if ((new_data = realloc(args->data, len + 8*sizeof(void*))) == NULL)
  6.             return 0;
  7.         else if ((new_sizes = realloc(args->sizes, len + 8*sizeof(int))) == NULL)
  8.             return 0;
  9.         printf("After realloc\n");
Add Comment
Please, Sign In to add comment