C implementation of blackjack