src/z-dice.c
dice_t *dice_new(void)
{
	dice_t *dice = mem_zalloc(sizeof(dice_t));

	if (dice == NULL)
		return NULL;

	dice_reset(dice);

	return dice;
}
/**
 * Allocate and initialize a new dice object. Returns NULL if it was unable to
 * be created.
 */
Allocate and initialize a new dice object. Returns NULL if it was unable to
be created.
Allocate and initialize a new dice object . Returns NULL if it was unable to be created .
dice_t *dice_new(void)
{
	dice_t *dice = mem_zalloc(sizeof(dice_t));
	if (dice == NULL)
		return NULL;
	dice_reset(dice);
	return dice;
}
dice_t * dice_new ( void ) { dice_t * dice = mem_zalloc ( sizeof ( dice_t ) ) ; if ( dice == NULL ) return NULL ; dice_reset ( dice ) ; return dice ; }
Allocate and initialize a new dice object.
Allocate and initialize a new dice object .