Get the Process ID (PID) of the calling process.
#include <unistd.h> pid_t getpid (void);
None
The return value is the PID of the calling process. This function is always successful.