fxkit 0.1.0

Useful utilities for writting Rust CLI tools
Documentation
1
2
3
4
5
6
7
8
9
use crate::core::os::unix::root::is_root;

/// Checks if the user is root, if yes then returns true otherwise false
/// # Safety
/// This function is completely safe
#[unsafe(no_mangle)]
pub extern "C" fn fxkit_is_root() -> bool {
    is_root()
}