Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void *allocate(size_t size)
- {
- void *ptr = (void *)malloc(size);
- memset(ptr, 0, size);
- ReferenceCount1 = 1;
- if (ptr == NULL)
- {
- return NULL;
- }
- return ptr;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement