5 * Revision 1.2.4.1 2002/11/26 16:46:57 hristov
6 * Merging NewIO with v3-09-04
8 * Revision 1.2 2002/10/14 14:57:10 hristov
9 * Merging the VirtualMC branch to the main development branch (HEAD)
11 * Revision 1.1.2.1 2002/07/11 17:15:24 alibrary
14 * Revision 1.1.1.1 1999/05/18 15:55:28 fca
17 * Revision 1.3 1997/09/02 14:26:36 mclareni
20 * Revision 1.2 1997/02/04 17:34:17 mclareni
21 * Merge Winnt and 97a versions
23 * Revision 1.1.1.1.2.1 1997/01/21 11:29:27 mclareni
24 * All mods for Winnt 96a on winnt branch
26 * Revision 1.1.1.1 1996/02/15 17:49:22 mclareni
30 #include "kerngen/pilot.h"
31 #include "kerngen/fortranc.h"
34 CERN PROGLIB# Z265 GETENI .VERSION KERNFOR 4.31 911111
36 Fortran interface routine to getenv
38 CALL GETENVF (NAME, TEXT*)
40 NAME the name of the environment variable,
41 TEXT returns its value
42 ISLATE(1) returns its length
46 #include "kerngen/fortchar.h"
47 #if defined(CERNLIB_QX_SC)
48 void type_of_call geteni_(fname, ftext, lgtext, lgname)
50 #if defined(CERNLIB_QXNO_SC)
51 void type_of_call geteni(fname, ftext, lgtext, lgname)
53 #if defined(CERNLIB_QXCAPT)
54 # ifdef CERNLIB_MSSTDCALL
55 void type_of_call GETENI(fname, len_fname, ftext, len_ftext, lgtext, lgname)
56 int len_fname, len_ftext;
58 void type_of_call GETENI(fname, ftext, lgtext, lgname)
61 #if defined(CERNLIB_QMCRY)
64 #if !defined(CERNLIB_QMCRY)
69 char *ptname, *fchtak();
70 char *pttext, *getenv();
74 ptname = fchtak(fname,*lgname);
75 if (ptname == NULL) goto out;
76 pttext = getenv (ptname);
79 out: *lgtext = fchput (pttext,ftext,*lgtext);
82 /*> END <----------------------------------------------------------*/