forked from menault/TD3_DEV51_Qualite_Algo
ajout des commentaires.
This commit is contained in:
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"unistd.h": "c"
|
||||
}
|
||||
}
|
8
pendu.c
8
pendu.c
@@ -37,9 +37,13 @@ void display_hangman(int tries) {
|
||||
}
|
||||
}
|
||||
|
||||
/* this function display time out when user does nothing during 30s and verify signal*/
|
||||
void sig_handler(int signum){
|
||||
printf("\ntime out\n");
|
||||
exit (1);
|
||||
if (signum == SIGALRM){
|
||||
|
||||
printf("\ntime out\n");
|
||||
exit (1);
|
||||
}
|
||||
}
|
||||
|
||||
int main() {
|
||||
|
Reference in New Issue
Block a user