rem: if (scr==0) { p = getenv(var); } if (scr!=0 || !p) { sprintf(varname, "%s%i", var, scr);
add: sprintf(varname, "%s%i", var, scr); p = getenv(varname); if (!p) {
context: mygetenv(char *var, int scr){    char *p;    char varname[64];    if (scr==0) {	p = getenv(var);    }    if (scr!=0 || !p) {	sprintf(varname, "%s%i", var, scr);	p = getenv(var);    }    return p;}