ajout des commentaires.

This commit is contained in:
Leo ROCHER 2024-10-15 12:01:02 +02:00
parent b4f25a50b0
commit 83066e1704
3 changed files with 6 additions and 7 deletions

View File

@ -1,5 +0,0 @@
{
"files.associations": {
"unistd.h": "c"
}
}

BIN
pendu

Binary file not shown.

View File

@ -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){ void sig_handler(int signum){
if (signum == SIGALRM){
printf("\ntime out\n"); printf("\ntime out\n");
exit (1); exit (1);
}
} }
int main() { int main() {