-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Labels

Description
getenv does not get Environment var (emscripten 1.35.0 )
Excpet PATH that return '/' wrong path
the other environment var are NULL
#include <stdio.h>
#include <stdlib.h>
int main ()
{
char* ENVAR;
ENVAR = getenv ("PATH"); if (ENVAR!=NULL) printf ("\n <%s>",ENVAR);
ENVAR = getenv ("TEMP"); if (ENVAR!=NULL) printf ("\n <%s>",ENVAR);
ENVAR = getenv ("EMSCRIPTEN"); if (ENVAR!=NULL) printf ("\n <%s>",ENVAR);
ENVAR = getenv ("ComSpec"); if (ENVAR!=NULL) printf ("\n <%s>",ENVAR);
return 0;
}