mirror of
https://github.com/c0de-archive/hacktoberfest-2018.git
synced 2025-01-03 08:22:39 +00:00
21 lines
378 B
C
21 lines
378 B
C
|
#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;
|
||
|
}
|