defined why2_calloc & why2_free
same thing as why2_malloc
This commit is contained in:
parent
3491d89a86
commit
e075c022fa
@ -8,3 +8,17 @@ void *why2_malloc(unsigned long size)
|
|||||||
|
|
||||||
return malloc(size);
|
return malloc(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void *why2_calloc(unsigned long element, unsigned long size)
|
||||||
|
{
|
||||||
|
//TODO: Add linked list
|
||||||
|
|
||||||
|
return calloc(element, size);
|
||||||
|
}
|
||||||
|
|
||||||
|
void why2_free(void *pointer)
|
||||||
|
{
|
||||||
|
//TODO: Add linked list
|
||||||
|
|
||||||
|
free(pointer);
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user