MCPcopy Create free account
hub / github.com/OSGeo/PROJ / err_const_from_errno

Function err_const_from_errno

src/apps/gie.cpp:1318–1327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1316}
1317
1318static const char *err_const_from_errno(int err) {
1319 size_t i;
1320 const size_t n = sizeof lookup / sizeof lookup[0];
1321
1322 for (i = 0; i < n; i++) {
1323 if (err == lookup[i].the_errno)
1324 return lookup[i].the_err_const;
1325 }
1326 return "unknown";
1327}
1328
1329static int errno_from_err_const(const char *err_const) {
1330 const size_t n = sizeof lookup / sizeof lookup[0];

Callers 2

expectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected