darwin_libproc

Function version

Source
pub fn version() -> Result<(c_int, c_int)>
Expand description

Returns the libproc version as a tuple of (major, minor) parts.

Examples found in repository?
examples/version.rs (line 4)
3
4
5
6
7
8
9
fn main() -> io::Result<()> {
    let (major, minor) = darwin_libproc::version()?;

    println!("libproc version: {}.{}", major, minor);

    Ok(())
}