carb::extras::getLastErrnoMessage
Defined in carb/extras/Errors.h
-
inline std::string carb::extras::getLastErrnoMessage(ErrnoType *out = nullptr)
Reads the current value of
errnoand returns a human-readable string for the errno value.See also
Note
Unlike convertErrnoToMessage(), this function ensures that
errnoremains consistent by settingerrnoto the same value after creating the string.- Parameters
out – [out] If not
nullptr, receives the value oferrno.- Returns
string value from convertErrnoToMessage()