mirror of
https://github.com/c0de-archive/hacktoberfest-2018.git
synced 2024-12-22 13:22:39 +00:00
21 lines
378 B
C
Executable File
21 lines
378 B
C
Executable File
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <sys/types.h>
|
|
#include <errno.h>
|
|
#include <string.h>
|
|
#include <stdlib.h>
|
|
|
|
int main(){
|
|
|
|
pid_t getpid(void);
|
|
pid_t getppid(void);
|
|
|
|
printf("PID = [%d]\n",getpid());
|
|
printf("PPID = [%d]\n",getppid());
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
}
|