Searched refs:num_cards (Results 1 - 4 of 4) sorted by relevance
/openbsd-current/games/monop/ |
H A D | initdeck.c | 82 if ((CC_D.offsets = calloc(CC_D.num_cards + 1, 84 (CH_D.offsets = calloc(CH_D.num_cards + 1, 94 fwrite(&deck[0].num_cards, sizeof(deck[0].num_cards), 1, outf); 98 fwrite(&deck[0].num_cards, sizeof(deck[0].num_cards), 1, outf); 102 fwrite(CC_D.offsets, sizeof(CC_D.offsets[0]), CC_D.num_cards, outf); 103 fwrite(CH_D.offsets, sizeof(CH_D.offsets[0]), CH_D.num_cards, outf); 109 deck[0].num_cards = htons(deck[0].num_cards); [all...] |
H A D | deck.h | 41 int16_t num_cards; /* number of cards in deck */ member in struct:dk_st
|
H A D | cards.c | 63 if (fread(&deck[0].num_cards, sizeof(deck[0].num_cards), 1, deckf) != 1) 69 deck[0].num_cards = ntohs(deck[0].num_cards); 72 if (fread(&deck[1].num_cards, sizeof(deck[1].num_cards), 1, deckf) != 1) 78 deck[1].num_cards = ntohs(deck[1].num_cards); 93 if ((dp->offsets = calloc(dp->num_cards, sizeof (int32_t))) == NULL) 95 for (i = 0 ; i < dp->num_cards ; [all...] |
H A D | execute.c | 226 fprintf(outf, "%d %d %d\n", (int)(deck[i].num_cards), 228 for (j = 0; j < deck[i].num_cards; j++) 369 j > t1 || t1 != deck[i].num_cards || j < 0 || 380 for (j = 0; j < deck[i].num_cards; j++) {
|
Completed in 105 milliseconds