MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / SetEnvironmentVariable

Function SetEnvironmentVariable

src/vrcore/envvartools_public.cpp:76–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76bool SetEnvironmentVariable( const char *pchVarName, const char *pchVarValue )
77{
78#if defined(_WIN32)
79 return 0 != SetEnvironmentVariableA( pchVarName, pchVarValue );
80#elif defined(POSIX)
81 if( pchVarValue == NULL )
82 return 0 == unsetenv( pchVarName );
83 else
84 return 0 == setenv( pchVarName, pchVarValue, 1 );
85#else
86#error "Unsupported Platform"
87#endif
88}

Callers 1

InitSteamAppIdMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected