getpid Function

Return the process ID of the current process.

Attention: This interface function is implemented only by MPLAB XC32 C compilers.




pid_t getpid (void)

Return Value

The pid_t data type is a signed integer type which is capable of representing a process ID. In the GNU C Library, this is an int.


This function is implemented as a stub that must be completed to suite the application.

A process ID uniquely identifies a process only during the lifetime of the process. As a rule of thumb, this means that the process must still be running.

Source File