Returns the process ID of the current process. Format #include <unistd.h> pid_t getpid (void);
1 – Return Value
x The process ID of the current process.