Re: C functions
Posted in 1992
In article <1fq4toINNhen@emory.mathcs.emory.edu> obelix.informix.com!johnl@emory.mathcs.emory.edu (Jonathan Leffler) writes: >You must be using a very old verion of I4GL then, because there is a function >fgl_getenv() which is available and documented. >int fgl_getenv(i) >int i; >{ > char env[80]; > if (i != 1) > retquote(""); > else > { > popquote(env, sizeof(env)); > ldchar(env, sizeof(char), env); /* Remove trailing blanks */ Why remove trailing blanks? In UNIX shells, if there are trailing blanks at the end of an env variable value, they're there because the user explicitly quoted the value (otherwise the shell strips 'em out). Why mess with it? -- Alan Denney aland@informix.com {pyramid|uunet}!infmx!aland Circle number 408 on Usenet Reader Service Card.