Advertisement
radchukd

Untitled

Apr 14th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.17 KB | None | 0 0
  1. void *allocate(size_t size)
  2. {
  3.     void *ptr = (void *)malloc(size);
  4.     memset(ptr, 0, size);
  5.     ReferenceCount1 = 1;
  6.     if (ptr == NULL)
  7.     {
  8.         return NULL;
  9.     }
  10.     return ptr;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement