MCPcopy Create free account
hub / github.com/beefytech/Beef / GetEnv

Function GetEnv

BeefTools/RunWithStats/RunWithStats.cpp:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <time.h>
9
10std::string GetEnv(const std::string& name)
11{
12 char envStr[1024];
13 envStr[0] = 0;
14 ::GetEnvironmentVariableA(name.c_str(), envStr, sizeof(envStr));
15 return envStr;
16}
17
18
19static bool CreatePipeWithSecurityAttributes(HANDLE& hReadPipe, HANDLE& hWritePipe, SECURITY_ATTRIBUTES* lpPipeAttributes, int nSize)

Callers 1

mainFunction · 0.85

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected