devela::_dep::nc::call

Function getpid

pub unsafe fn getpid() -> i32 
Available on crate feature dep_nc only.
Expand description

Get the process ID (PID) of the calling process.

§Examples

let pid = unsafe { nc::getpid() };
assert!(pid > 0);