4 * getenv - f77 subroutine to return environment variables
7 * call getenv (ENV_NAME, char_var)
9 * ENV_NAME is the name of an environment variable
10 * char_var is a character variable which will receive
11 * the current value of ENV_NAME, or all blanks
12 * if ENV_NAME is not defined
15 VOID getenv_(fname, value, flen, vlen)
19 extern char **environ;
20 register char *ep, *fp, *flast;
21 register char **env = environ;
24 for(fp = fname ; fp < flast ; ++fp)
33 for(fp = fname; fp<flast ; )
37 if(*ep++ == '=') { /* copy right hand side */
38 while( *ep && --vlen>=0 )