commit 4a08ff5d18d4b0ee44fe22b3c429b51bd4c110e9 Author: Eric Date: Thu Sep 28 20:39:40 2023 +0200 Ejercicio Getpid diff --git a/GetPid b/GetPid new file mode 100755 index 0000000..dec8372 Binary files /dev/null and b/GetPid differ diff --git a/GetPid.c b/GetPid.c new file mode 100644 index 0000000..af3fe2a --- /dev/null +++ b/GetPid.c @@ -0,0 +1,12 @@ +#include +#include + +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); + +} \ No newline at end of file diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..e69de29