#include <stdio.h>
#include <unistd.h>
void main() {
__pid_t id_actual, id_padre;
id_actual = getpid();
id_padre = getppid();
printf("Mi id es %d y el de mi padre es %d\n", id_actual, id_padre);
}
Powered by INFORMATICA.FP.EDU.ES.