Re: [gtk-list] g_setenv() anyone



> Hi folks,

Hi, Andrew.

> I'm brand new to GTK and I've thrown myself in at the deep
> end.

> I'm writing some code that needs to use setenv(). On
> some systems that might be in the C library, but it isn't
> on SunOS 4.1.x and its not in GNU's liberty

I don't have access to SunOS 4.x, but I have a copy of the GNU C library,
one of the pre-2.1.1 versions:

   $ nm -g /usr/lib/libc.a|grep -w setenv
   setenv.o:
   00000000 W setenv
            U setenv

The prototypes look just the same in the setenv(3) man pages on BSDI and
Linux, and SunOS 4 is reputedly BSDish.  Maybe you forgot the #include
<stdlib.h> directive. 
__
Trevor Johnson



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]