mirror of
https://github.com/lifegpc/c-utils.git
synced 2026-06-06 13:18:57 +08:00
15 lines
295 B
C++
15 lines
295 B
C++
#ifndef _UTILS_ERR_H
|
|
#define _UTILS_ERR_H
|
|
#include <string>
|
|
|
|
namespace err {
|
|
/**
|
|
* @brief Get error message from errno
|
|
* @param out Output string
|
|
* @param errnum errno
|
|
* @returns true if successed
|
|
*/
|
|
bool get_errno_message(std::string &out, int errnum);
|
|
}
|
|
#endif
|