Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void *ft_calloc(size_t count, size_t size)
- {
- char *ptrheap;
- while (count)
- {
- ptrheap = malloc(size);
- if (ptrheap == NULL)
- return (0);
- ft_memset(ptrheap, '\0', size);
- count--;
- }
- return ptrheap - count;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement