Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ get environment variable

#include <stdlib.h> 

int main() {
  std::string pathVar = getenv("PATH");
  return 0;
}
 
PREVIOUS NEXT
Tagged: #environment #variable
ADD COMMENT
Topic
Name
8+8 =