void card_player_clear(card_player_t* player) { if(player){ if(player->mycards) hand_free(player->mycards); } }
void deck_free(deck_t* deck) { if(!deck){ if(!deck->poker) hand_free(deck->poker); free(deck); } }