//GetEnvStrings
//This code works a bit like the SET command in DOS that will display a list of enviorment varaibles.

#include <iostream>

using namespace std;
using std::cout;
using std::endl;

int main(int argc, char **anvg, char**envp){
	char *pValue = NULL;

	while(*envp != NULL){
		//Pointer to envp
		pValue = *envp;
		//Print data
		cout << pValue << endl;
		//Get next item
		*envp++;
	}

	//Just to keep the console open.
	system("pause");
	return 1;
}