int main( int nArgc, char* pcArgv[], char* pcenv[ ])
{
int nIdx = 0;
while ( pcenv[ nIdx ] )
printf ( "%s\n", pcenv[ nIdx++ ] );
return 0;
}
The above program will print all the environment variables in the console window
A technical/programming blog on C/C++,VC++,MFC,C#
Free Code snippets, Programming Tips, Software Utilities and many more...
int main( int nArgc, char* pcArgv[], char* pcenv[ ])
{
int nIdx = 0;
while ( pcenv[ nIdx ] )
printf ( "%s\n", pcenv[ nIdx++ ] );
return 0;
}
The above program will print all the environment variables in the console window
No comments:
Post a Comment