Re: C functions
Posted in 1992
>From: uunet!jptcs.COM!tps (Tim Sailer) >Subject: C functions >Date: 3 Dec 92 18:05:03 GMT >X-Informix-List-Id: <news.2235> > >Well, 4GL doesn't have a getenv function. Has anyone written one? If so, >could you post it or email it to me? I don't want to have to struggle >with the C to hack my own. Are there any other useful functions in C >that anyone has written? You must be using a very old verion of I4GL then, because there is a function fgl_getenv() which is available and documented. The equivalent code is: 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 */ retquote(getenv(env)); } return(1); } This code has not been compiled and tested, but it should work... Yours, Jonathan Leffler (johnl@obelix.informix.com) #include <disclaimer.h>