ajout des commentaires.

This commit is contained in:
Leo ROCHER 2024-10-15 12:01:02 +02:00 committed by schied
parent ebfe656cf4
commit 3c4ed87d6c
3 changed files with 10 additions and 5 deletions

View File

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

BIN
pendu

Binary file not shown.

10
pendu.c
View File

@ -37,6 +37,7 @@ void display_hangman(int tries) {
} }
} }
<<<<<<< HEAD
<<<<<<< HEAD <<<<<<< HEAD
/* /*
this function allow to save the last party this function allow to save the last party
@ -82,6 +83,15 @@ void sig_handler(int signum){
printf("\ntime out\n"); printf("\ntime out\n");
exit (1); exit (1);
>>>>>>> b4f25a5 (ajout du cooldown sur le scanf) >>>>>>> b4f25a5 (ajout du cooldown sur le scanf)
=======
/* this function display time out when user does nothing during 30s and verify signal*/
void sig_handler(int signum){
if (signum == SIGALRM){
printf("\ntime out\n");
exit (1);
}
>>>>>>> 83066e1 (ajout des commentaires.)
} }
int main() { int main() {