dev-rocherl #5

Closed
Leo ROCHER wants to merge 2 commits from dev-rocherl into master
3 changed files with 6 additions and 7 deletions
Showing only changes of commit 83066e1704 - Show all commits

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