Commentaires
This commit is contained in:
parent
10c9aca59a
commit
8877777c62
16
pendu.c
16
pendu.c
@ -37,6 +37,7 @@ void display_hangman(int tries) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
<<<<<<< HEAD
|
<<<<<<< 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*/
|
/* 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){
|
if (signum == SIGALRM){
|
||||||
@ -86,7 +97,10 @@ void sig_handler(int signum){
|
|||||||
printf("\ntime out\n");
|
printf("\ntime out\n");
|
||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
<<<<<<< HEAD
|
||||||
>>>>>>> 83066e1 (ajout des commentaires.)
|
>>>>>>> 83066e1 (ajout des commentaires.)
|
||||||
|
=======
|
||||||
|
>>>>>>> dev-rocherl
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
@ -100,6 +114,8 @@ int main() {
|
|||||||
|
|
||||||
signal(SIGALRM,sig_handler);
|
signal(SIGALRM,sig_handler);
|
||||||
|
|
||||||
|
signal(SIGALRM,sig_handler);
|
||||||
|
|
||||||
for (int i = 0; i < word_length; i++) {
|
for (int i = 0; i < word_length; i++) {
|
||||||
guessed[i] = '_';
|
guessed[i] = '_';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user