G
grocery_stocker
Given the following snippet of code:
(taken from
http://www.gnu.org/software/libc/manual/html_node/Malloc-Examples.html)
void *
xmalloc (size_t size)
{
register void *value = malloc (size);
if (value == 0)
fatal ("virtual memory exhausted");
return value;
}
What header file is fatal() located in? Also, why not just use
something like printf() or perror()?
(taken from
http://www.gnu.org/software/libc/manual/html_node/Malloc-Examples.html)
void *
xmalloc (size_t size)
{
register void *value = malloc (size);
if (value == 0)
fatal ("virtual memory exhausted");
return value;
}
What header file is fatal() located in? Also, why not just use
something like printf() or perror()?