"depot M311"
This commit is contained in:
15
S3T_TP_00_REVISIONS/processus_1.c
Executable file
15
S3T_TP_00_REVISIONS/processus_1.c
Executable file
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
gcc processus_1.c
|
||||
Exemple : ./a.out un deux trois
|
||||
*/
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int main(int argc, char * argv[]){
|
||||
int i;
|
||||
for (i=1; i< argc; i++) {
|
||||
printf("argument %d: %s\n",i,argv[i]);
|
||||
}
|
||||
printf("\nPID = %d - PPID = %d \n\n",getpid(), getppid());
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user