5#if defined(HAVE_CONFIG_H)
6#include <config/bitcoin-config.h>
20 const char *s =
nullptr;
22 if (strerror_s(buf,
sizeof(buf), err) == 0) {
26#ifdef STRERROR_R_CHAR_P
28 s = strerror_r(err, buf,
sizeof(buf));
31 if (strerror_r(err, buf,
sizeof(buf)) == 0) {
39 return strprintf(
"Unknown error (%d)", err);
std::string SysErrorString(int err)
Return system error string from errno value.