Пример #1
0
void card_player_clear(card_player_t* player)
{
    if(player){
        if(player->mycards)
            hand_free(player->mycards);
    }
}
Пример #2
0
void deck_free(deck_t* deck)
{
    if(!deck){
        if(!deck->poker)
            hand_free(deck->poker);
        free(deck);
    }
}