This commit is contained in:
2025-12-05 13:48:10 +01:00
parent 87565cf26c
commit 1b19a9c052
22 changed files with 2843 additions and 0 deletions

17
SCR3.1/TP4/Exo1/rebours.c Normal file
View File

@@ -0,0 +1,17 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char** argv)
{
int cpt = (int)strtol(argv[1],NULL,0);
printf("%d : debut\n", getpid());
for (cpt ; cpt>=1; cpt--)
{
printf("%d : %d\n", getpid(), cpt);
sleep(1);
}
printf("%d : fin\n", getpid());
return EXIT_SUCCESS;
}