Returns the process ID.
#include <sys/types.h> #include <unistd.h> pid_t getpid (void);
None.
The process ID of the calling process.
The getpid() function returns the process ID (PID) of the calling process.
getppid(), execl(), execv(), fork(), kill(), POSIX.1 (Section 4.1.1)