MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / strerror

Function strerror

lib/mdflib/mdflib/src/platform.cpp:31–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void strerror(int __errnum, char *__buf, size_t __buflen) {
32#if (_WIN32)
33 strerror_s(__buf, __buflen, __errnum);
34#elif (__APPLE__ || __FreeBSD__)
35 int err = strerror_r(__errnum, __buf, __buflen);
36 if (err == 0)
37 {
38
39 }
40#elif (__CYGWIN__)
41 strerror_r(__errnum, __buf, __buflen);
42#else
43 auto* dummy = strerror_r(__errnum, __buf, __buflen);
44 if (dummy != nullptr) {
45 strcpy(__buf, dummy);
46 }
47#endif
48}
49
50int64_t ftell64(std::FILE *__stream) {
51#if (_MSC_VER)

Callers 15

hid.cFile · 0.85
hid_writeFunction · 0.85
hid_read_timeoutFunction · 0.85
hid_send_feature_reportFunction · 0.85
hid_get_feature_reportFunction · 0.85
hid_get_input_reportFunction · 0.85
set_reportFunction · 0.85

Calls

no outgoing calls

Tested by 2