devela::_dep::nc

Function sysinfo

pub unsafe fn sysinfo(info: &mut sysinfo_t) -> Result<(), i32> 
Available on crate feature dep_nc only.
Expand description

Return system information.

§Examples

let mut info = nc::sysinfo_t::default();
let ret = unsafe { nc::sysinfo(&mut info) };
assert!(ret.is_ok());
assert!(info.uptime > 0);
assert!(info.freeram > 0);