getpid()

Return the process identifier for the current PSL process.

Syntax

getpid()

Parameter

This function has no parameters.

Description

The getpid() function returns the integer PATROL process identifier of the current PSL process.

Example

The following is an example of the getpid() function:

printf("Current PID is : %d\n",getpid());
Was this page helpful? Yes No Submitting... Thank you

Comments