Pejman Moghadam / C-programming

C - getpid

Public Domain


Getting PID

#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


Pejman Moghadam / C-programming [ TXT ]