This repository has been archived on 2024-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
CodeBlocksPortable/WATCOM/samples/clibexam/getenv_s.c

13 lines
249 B
C

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