"debut TD0"

This commit is contained in:
JunkJumper
2020-09-04 10:27:13 +02:00
parent ac93b9b2af
commit cf00c53e65
88 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
///********************************************************************/
///* IUT NICE-COTE D'AZUR - Departement INFORMATIQUE - R. CHIGNOLI */
///* Module DUT M311 Theme PTHREADS */
///********************************************************************/
/// demo_system : Demonstration d'utilisation de "system"
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <assert.h>
#include <pthread.h>
int main (int argc, char* argv[]) {
int i;
assert (argc == 2);
for (i=1; i<=3; i++) { /// 3 : par exemple ...
system (argv[1]);
printf (" ... Au suivant ...\n");
}
return 0;
}