malloc.c
void *smalloc(size_t size) {
    void *p;
    p = malloc(size);
    if (!p)
	fatal("out of memory");
    return p;
}
/*
 * smalloc should guarantee to return a useful pointer - Halibut
 * can do nothing except die when it's out of memory anyway.
 */
smalloc should guarantee to return a useful pointer - Halibut
can do nothing except die when it's out of memory anyway.
smalloc should guarantee to return a useful pointer - Halibut can do nothing except die when it ' s out of memory anyway .
void *smalloc(size_t size) {
    void *p;
    p = malloc(size);
    if (!p)
	fatal("out of memory");
    return p;
}
void * smalloc ( size_t size ) { void * p ; p = malloc ( size ) ; if ( ! p ) fatal ( " " ) ; return p ; }
smalloc should guarantee to return a useful pointer - Halibut
 can do nothing except die when it's out of memory anyway.
smalloc should guarantee to return a useful pointer - Halibut can do nothing except die when it ' s out of memory anyway .