err_code

Function err_code 

Source
pub unsafe extern "C" fn err_code(
    read_context: *const c_context,
) -> err
Expand description

@brief Retrieves the most recent error code from a nix_c_context

Equivalent to reading the first field of the context.

Does not fail

@param[in] read_context the context to retrieve the error message from @return most recent error code stored in the context.