MCPcopy Create free account
hub / github.com/catboost/catboost / unsetenv

Function unsetenv

library/python/runtime/main/main.c:13–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11extern char** environ;
12
13void unsetenv(const char* name) {
14 const int n = strlen(name);
15 char** dst = environ;
16 for (char** src = environ; *src; src++)
17 if (strncmp(*src, name, n) || (*src)[n] != '=')
18 *dst++ = *src;
19 *dst = NULL;
20}
21#endif
22
23static int pymain(int argc, char** argv) {

Callers 2

pymainFunction · 0.70
UnsetEnvFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected