getpid

OS/161 Reference Manual

Name

getpid - get process id

Library

Standard C Library (libc, -lc)

Synopsis

#include <unistd.h>

pid_t
getpid(void);

Description

getpid returns the process id of the current process.

Errors

getpid does not fail.