Function login_cap_sys::login_getclass [−][src]
pub unsafe extern "C" fn login_getclass(
_class: *mut c_char
) -> *mut login_cap_t
Expand description
From login_getclass(3)
:
The login_getclass() function extracts the entry specified by class (or default if class is NULL or the empty string) from /etc/login.conf (see login.conf(5)). If the entry is found, a login_cap_t pointer is returned. NULL is returned if the user class is not found. When the login_cap_t structure is no longer needed, it should be freed by the login_close() function.