#define __STDC_WANT_LIB_EXT1__ 1 #include #include void main( void ) { char buffer[128]; size_t len; if( getenv_s( &len, buffer, sizeof( buffer ), "INCLUDE" ) == 0 ) printf( "INCLUDE=%s\n", buffer ); }