FreeBSD/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
/*
 * Utility function to guarantee malloc() success.
 */
Utility function to guarantee malloc() success.
Utility function to guarantee malloc () success .
void *
safe_malloc(size_t size)
{
	void *data;
	if ((data = calloc(1, size)) == NULL)
		nomem();
	return (data);
}
void * safe_malloc ( size_t size ) { void * data ; if ( ( data = calloc ( 1 , size ) ) == NULL ) nomem ( ) ; return ( data ) ; }
Utility function to guarantee malloc() success.
Utility function to guarantee malloc () success .