From 3c4ed87d6c0d4153dbd88fd2e4e924a9cb4a8d82 Mon Sep 17 00:00:00 2001 From: rocherl Date: Tue, 15 Oct 2024 12:01:02 +0200 Subject: [PATCH] ajout des commentaires. --- .vscode/settings.json | 5 ----- pendu | Bin 16160 -> 0 bytes pendu.c | 10 ++++++++++ 3 files changed, 10 insertions(+), 5 deletions(-) delete mode 100644 .vscode/settings.json delete mode 100755 pendu diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 1992e5c..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "files.associations": { - "unistd.h": "c" - } -} \ No newline at end of file diff --git a/pendu b/pendu deleted file mode 100755 index e9aae9091bba0ad7ecac483fbf0965ec05a42109..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16160 zcmeHOeQ*@z8GrARXhh%w1A?C{C>^5aNMe8>QjU*6Gb3)S|T(m2!Qacb{joS?|>G zpU$-RB)iZ1{GN~ZeV=`A_ubuh9|*5q?f3ZvQ<33FV?-#p^%hv`DU5%L=$KZj$3P*0rm zi8;Zomg0GN2y{pxxfjCg*Ft_?zKZObV;xAF&sxz>Qr|}MJ2c0RL|`=1o*zzT;3yI~LZ=k3}nDW<1?e(NepxVqr}%l?YbLCSbcNVZ&jw zX8l&-Zxua=vA<9F#>sw?!9)_;PJ<28j{e_!Z1L+ee)Feo-M7?kpL6`|g7u3oK87~f z4~&U6NQmLaggV|B`#5|a7){M#_$**b4jk*qWj{L)j>jsO{f0bvEDwHr9(-FKybo{% zHZS3MBv*Ux$%D_xgP#Fhfz3-H0BA^$Q!N20SG}S+ZKZ^!r7S(NQ;Rh2)arFJCX5!- z5|-Iyh?JF#8F8?Hffzxvq@^|KW?ZC_dOQkvq(#^2&A1*j_ZXr%X~wO3kun4dBQV~5~FZ7t6Y!Vm;$L~V1W^LVym0ERhkyEO1O4Y#yPWiSPq1A0!r$vpV(O{-5 zBe`YW%2*<9Y|(eb45+1{DG{fpX|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5b>4y)z0Mp#TAgC~x-9N+Q7Mev#t)h%7%5_^*tBQ64ZWJe7^x4;i0XTP8m`81;IGq`{9W$ zd~N_ahIH*nrKlG9K|$0^HOKVb7^fyP$p*2RqmnGXn)00UZ8j2oVhQNB08G%|85DRueS%Do44vYv! z5>4`f`S_p5CzWvi20ul5%KyRd?Rfsi@zK^zH-dn3CO?6-Gy!8CBAl6=B(VT|A#85{ z7V>8gCDIb4C!#>R^+jmhkP4iq?c=(OR?$DQwMF*!gu{*l;^kK@~b zp$Yr*_e(wV(OQUkHgopu&-`7`xc&LQHADW*j;CE>A2ZQf-wXRkOV zyMVthjK%HedEI&P=X%%;>vGd1s-Mgq75jUCf9&t(JoX%CD3n#%5?=@KJdDSQ+r#Hi kypQ6x+aC6QKMmZAToEZfBFx=$`#*>mCZMZ44jxhb2X7#O2mk;8 diff --git a/pendu.c b/pendu.c index c617115..d00d9c6 100644 --- a/pendu.c +++ b/pendu.c @@ -37,6 +37,7 @@ void display_hangman(int tries) { } } +<<<<<<< HEAD <<<<<<< HEAD /* this function allow to save the last party @@ -82,6 +83,15 @@ void sig_handler(int signum){ printf("\ntime out\n"); exit (1); >>>>>>> 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() {