Syntax Error before ; token
While doing an exercise out of this book I run into the syntax error after (*numCards)-;
which is exactly what the book says, I know that the book can be wrong, what would be suggested to fix this error
Code:
/**** This function gets a card from the deck and stores
it in either the dealer's or the playe's hold of cards. ****/
int dealCard(int * numCards, int cards[52])
{
int cardDrawn, subDraw;
time_t t; /* Gets time for a random value */
srand(time(&t)); /* Seeds random number generator */
subDraw = (rand() % (*numCards)); /* from 0 to numcards */
cardDrawn = cards[subDraw];
cards[subDraw] = cards[*numCards -1]; /* puts top card in place of drawn one */
(*numCards)-;
return cardDrawn;
}