/* ############################################################################# * # DiceRoller * This Program will alow you to role a dice or die using the scmatics such * as 1d6, 5d20, 1d100, d20 * * AUTHER: PreacherDHM * DATE: 06/02/25 * ############################################################################# */ #include "diceroller.h" #include #include int main (int argc, char *argv[]) { int roled; for(int i = 1; i < argc; i++) { roled = GetDice(argv[i]); if(roled <= 0) { printf("FORMAT ERROR\n"); return -1; } printf("%s: Roled a %d\n",argv[i], GetDice(argv[i])); } return 0; }