
/*
 * Function:		alloc_rec
 * Purpose:			Allocate memory for a Database record,
 *						 checking for an allocation error
 * Parameters:		None
 * Return Value:	Pointer to memory, or NULL on error
 */

struct record *alloc_rec(void)
{
	struct record *temp;
	
	if ((temp = malloc(sizeof(struct record))) == NULL)
		return NULL;
	else
		return temp;
}

