(void) snprintf (envstr, MAX_ENVSTR, "%s=%s", name, val); Debug (DPARS, ("load_env, <%s> <%s> -> <%s>\n", name, val, envstr));
(void) snprintf (envstr, MAX_ENVSTR, "%s=%s", name, val2); Debug (DPARS, ("load_env, <%s> <%s> -> <%s>\n", name, val2, envstr));
load_env (char *envstr, FILE * f){  long filepos;  int fileline;  char name[MAX_ENVSTR], val[MAX_ENVSTR];  int fields;  filepos = ftell (f);  fileline = LineNumber;  skip_comments (f);  if (EOF == get_string (envstr, MAX_ENVSTR - 1, f, "\n"))    return (ERR);  envstr[MAX_ENVSTR - 1] = '\0';  Debug (DPARS, ("load_env, read <%s>\n", envstr));  name[0] = val[0] = '\0';  fields = sscanf (envstr, "%[^ =] = %[^\n#]", name, val);  if (fields != 2)    {      Debug (DPARS, ("load_env, not 2 fields (%d)\n", fields));      fseek (f, filepos, 0);      Set_LineNum (fileline);      return (FALSE);    }  /* 2 fields from scanf; looks like an env setting   */  /*   * process value string   */  /*local */  {    int len = strdtb (val);    if (len >= 2)      {	if (val[0] == '\'' || val[0] == '"')	  {	    if (val[len - 1] == val[0])	      {		val[len - 1] = '\0';		(void) strcpy (val, val + 1);	      }	  }      }  }  (void) snprintf (envstr, MAX_ENVSTR, "%s=%s", name, val);  Debug (DPARS, ("load_env, <%s> <%s> -> <%s>\n", name, val, envstr));  return (TRUE);}