dp->offsets = (long *) calloc(sizeof (long), dp->num_cards); if (fread(dp->offsets, sizeof(long), dp->num_cards, deckf) != dp->num_cards) { perror(cardfile); exit(1);
dp->offsets = (int32_t *) calloc(sizeof (int32_t), dp->num_cards); for (i = 0 ; i < dp->num_cards ; i++) { if (fread(&dp->offsets[i], sizeof(dp->offsets[i]), 1, deckf) != 1) { perror(cardfile); exit(1); } dp->offsets[i] = ntohl(dp->offsets[i]);
set_up(dp)DECK	*dp; {	reg int	r1, r2;	int	i;	dp->offsets = (long *) calloc(sizeof (long), dp->num_cards);	if (fread(dp->offsets, sizeof(long), dp->num_cards, deckf) != dp->num_cards) {		perror(cardfile);		exit(1);	}	dp->last_card = 0;	dp->gojf_used = FALSE;	for (i = 0; i < dp->num_cards; i++) {		reg long	temp;		r1 = roll(1, dp->num_cards) - 1;		r2 = roll(1, dp->num_cards) - 1;		temp = dp->offsets[r2];		dp->offsets[r2] = dp->offsets[r1];		dp->offsets[r1] = temp;	}}