Public Domain
#include <stdio.h> #include <unistd.h> int main() { pid_t pid; pid = getpid(); printf("PID = %d\n", pid); return 0; }
BY: Pejman Moghadam TAG: c, pid, getpid DATE: 2014-01-15 11:51:51