2020-05-01 23:58:52 +02:00

16 lines
308 B
C
Executable File

/*
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;
}