how to get process id in c code example
Example: how to print the process id in c
int p_id,p_pid;
p_id=getpid(); /*process id*/
p_pid=getpid(); /*parent process id*/
int p_id,p_pid;
p_id=getpid(); /*process id*/
p_pid=getpid(); /*parent process id*/