Commentaires

This commit is contained in:
Killian SCHIED 2024-10-15 12:27:04 +02:00
parent 10c9aca59a
commit 8877777c62

16
pendu.c
View File

@ -37,6 +37,7 @@ void display_hangman(int tries) {
}
}
<<<<<<< HEAD
<<<<<<< HEAD
<<<<<<< HEAD
/*
@ -79,6 +80,16 @@ void save_party(char * status, const char * good_word, char try[]) {
}
=======
<<<<<<< HEAD
=======
void sig_handler(int signum){
printf("\ntime out\n");
exit (1);
>>>>>>> b4f25a5 (ajout du cooldown sur le scanf)
=======
=======
>>>>>>> dev-rocherl
>>>>>>> 083b1f2 (Commentaires)
/* this function display time out when user does nothing during 30s and verify signal*/
void sig_handler(int signum){
if (signum == SIGALRM){
@ -86,7 +97,10 @@ void sig_handler(int signum){
printf("\ntime out\n");
exit (1);
}
<<<<<<< HEAD
>>>>>>> 83066e1 (ajout des commentaires.)
=======
>>>>>>> dev-rocherl
}
int main() {
@ -100,6 +114,8 @@ int main() {
signal(SIGALRM,sig_handler);
signal(SIGALRM,sig_handler);
for (int i = 0; i < word_length; i++) {
guessed[i] = '_';
}