# %getpid() function

The %getpid() function returns the Process-ID
(PID) of the calling process.

## Syntax

```
var = %getpid()
```

## See also

- [FlashBASIC C functions overview](https://d3codex.com/pickbasic-flashbasic/flashbasic-c-functions-overview/)
- [cfunction statement](https://d3codex.com/pickbasic-flashbasic/cfunction-statement/)

---
Source: https://d3codex.com/pickbasic-flashbasic/percent-getpid-function/ - part of the D3Codex reference.
