D
dam_fool_2003
My understanding about wrapping is that we add utilities to a lib
function for our specific use. So days ago in the c.l.c I saw a
function def as:
void *
xmalloc (size_t size)
{
register void *value = malloc (size);
if (value == 0)
error ("virtual memory exhausted");
return value;
}
The above is useful for mem allocation and checking weather the malloc
is a success.
Is it the wrapping is all about?
(I could be funny by my understanding but pls help)
function for our specific use. So days ago in the c.l.c I saw a
function def as:
void *
xmalloc (size_t size)
{
register void *value = malloc (size);
if (value == 0)
error ("virtual memory exhausted");
return value;
}
The above is useful for mem allocation and checking weather the malloc
is a success.
Is it the wrapping is all about?
(I could be funny by my understanding but pls help)