Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int count = 5;
- int16_t * i16Ptr0 = (int16_t*)malloc(count * sizeof(int16_t));
- int16_t * i16Ptr1 = (int16_t*)calloc(count, sizeof(int16_t));
- int16_t * i16Ptr2 = (int16_t*)memset(i16Ptr0, 1111, count * sizeof(int16_t));
- int16_t * i16Ptr3 = (int16_t*)realloc(i16Ptr2, (count + 2) * sizeof(int16_t));
- free(i16Ptr0);
- free(i16Ptr1);
- free(i16Ptr2);
- free(i16Ptr3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement