You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
228 B

#include <unistd.h>
#include <stdio.h>
void main(void) {
__pid_t id_actual, id_padre;
id_actual = getpid();
id_padre = getppid();
printf("Mi PID es: %d\n", id_actual);
printf("El PID de mi papa es: %d\n", id_padre);
}

Powered by Informatica FP.