Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
582 B

#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "poker.h"
void
main(void)
{
int i;
// Get player names
for (i = 0; i < player_count; i++)
{
prompt_done = FALSE_B;
do
{
printf("Enter name for Player %d: ", i + 1);
gets(buffer);
if (*buffer != '\0')
{
player_array[i].name = strdup(buffer);
ASSERT(player_array[i].name != NULL);
prompt_done = TRUE_B;
}
else
printf("Invalid input.\n");
}
while (! prompt_done);
}
// Play the actual game
PlayGame();
exit(0);
}