Friday, May 29, 2020

How to get paths defined in the system environment

char path[_MAX_PATH];
const char* varName = "[system environment variable name]";
size_t len;
getenv_s(&len, path, 80, varName);

No comments: