Replace stdout with STDOUT_FILENO const.
This commit is contained in:
parent
f1b97c1fdb
commit
899f39f59e
1 changed files with 1 additions and 1 deletions
2
ace.c
2
ace.c
|
@ -64,7 +64,7 @@ int main()
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("\nHit (h) or stand (s)? ");
|
printf("\nHit (h) or stand (s)? ");
|
||||||
fflush(stdout);
|
fflush(STDOUT_FILENO);
|
||||||
|
|
||||||
char action;
|
char action;
|
||||||
read(STDIN_FILENO, &action, 1);
|
read(STDIN_FILENO, &action, 1);
|
||||||
|
|
Loading…
Reference in a new issue