return(setenv(var, val, 1));
if (setenv(var, val, 1) == -1) { (void) fprintf(stderr, "%s: cannot allocate memory!\n", Argv[0]); exit(1); }
sudo_setenv(var, val)    char *var;    char *val;{#ifdef HAVE_SETENV    return(setenv(var, val, 1));#else    char *envstring, *tmp;    envstring = tmp = (char *) malloc(strlen(var) + strlen(val) + 2);    if (envstring == NULL)	return(-1);    while ((*tmp++ = *var++))	;    *(tmp-1) = '=';    while ((*tmp++ = *val++))	;    return(putenv(envstring));#endif /* HAVE_SETENV */}