#include "dice.h"
#include <stdio.h>
#include <stdlib.h>
Go to the source code of this file.
◆ main()
Definition at line 6 of file main.c.
6 {
7 puts("Hello, World!\nNumber of dice rolls:");
10 puts("Rolling the dice...\n");
12 for (
uint_t roll = 0; roll < numRolls; roll++) {
13 printf("Roll %d: %d\n", roll + 1, dices[roll]);
14 }
15 free(dices);
16 return EXIT_SUCCESS;
17}
dices_t roll_dices(uint_t numRolls)
References init_dice(), and roll_dices().