[go: up one dir, main page]

get_current_gid

Function get_current_gid 

Source
pub fn get_current_gid() -> gid_t
Expand description

Returns the group ID for the user running the process.

§libc functions used

§Examples

use users::get_current_gid;

println!("The ID of the current group is {}", get_current_gid());