MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / setenv

Function setenv

tensorflow/core/platform/windows/env.cc:241–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239}
240
241int setenv(const char* name, const char* value, int overwrite) {
242 if (!overwrite) {
243 char* env_val = getenv(name);
244 if (env_val) {
245 return 0;
246 }
247 }
248 return _putenv_s(name, value);
249}
250
251int unsetenv(const char* name) { return _putenv_s(name, ""); }
252

Callers 2

TEST_FFunction · 0.50
TESTFunction · 0.50

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.40
TESTFunction · 0.40