MCPcopy Create free account
hub / github.com/apache/qpid-proton / setenv

Function setenv

cpp/src/connect_config_test.cpp:54–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52#include <string.h>
53namespace {
54 void setenv(const char* var, const char* value, int) {
55 int vlen = strlen(var);
56 int len = vlen+strlen(value)+1;
57 char* buff = new char[len+1];
58 strcpy(buff, var);
59 strcpy(buff+vlen, "=");
60 strcpy(buff+vlen+1, value);
61 _putenv(buff);
62 delete [] buff;
63 }
64
65 void unsetenv(const char* var) {
66 int len = strlen(var);

Callers 1

test_default_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected