MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / do_strerror_r

Function do_strerror_r

system/lib/libcxx/src/system_error.cpp:150–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148
149# if defined(_LIBCPP_MSVCRT_LIKE)
150string do_strerror_r(int ev) {
151 char buffer[strerror_buff_size];
152 if (::strerror_s(buffer, strerror_buff_size, ev) == 0)
153 return string(buffer);
154 std::snprintf(buffer, strerror_buff_size, "unknown error %d", ev);
155 return string(buffer);
156}
157# else
158
159// Only one of the two following functions will be used, depending on

Callers 1

messageMethod · 0.85

Calls 4

snprintfFunction · 0.85
handle_strerror_r_returnFunction · 0.85
strerror_rFunction · 0.85
stringFunction · 0.50

Tested by

no test coverage detected