mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 22:25:40 +00:00
14 lines
498 B
C
14 lines
498 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int main()
|
|
{
|
|
printf("INIT\n");
|
|
const char* UNEXISTENT_ENVVAR = getenv("UNEXISTENT_ENVVAR");
|
|
printf("get UNEXISTENT_ENVVAR: %s\n",(UNEXISTENT_ENVVAR!=NULL)? UNEXISTENT_ENVVAR : "[NULL]");
|
|
printf("set UNEXISTENT_ENVVAR = SET\n");
|
|
putenv("UNEXISTENT_ENVVAR=SET");
|
|
UNEXISTENT_ENVVAR = getenv("UNEXISTENT_ENVVAR");
|
|
printf("get UNEXISTENT_ENVVAR: %s\n",(UNEXISTENT_ENVVAR!=NULL)? UNEXISTENT_ENVVAR : "[NULL]");
|
|
printf("END\n");
|
|
}
|