Re: portability question


Subject: Re: portability question
From: Dom Lachowicz (dominicl@seas.upenn.edu)
Date: Mon Oct 22 2001 - 09:43:24 CDT


Quoting Tomas Frydrych <tomas@frydrych.uklinux.net>:

>
> How portable is setenv() and getenv() in the Unix world? I need to
> make a small change to the Unix Encoding manager, which would
> be extremely simple with these two functions.

setenv, getenv, unsetenv are very portable. If setenv isn't found, use putenv
instead.

getenv: Conforming to BSD 4.3 April 4, 1993 and used in lots of Abi code
already

putenv: Conforming to SVID 3, POSIX, BSD 4.3 April 8, 1993

Dom



This archive was generated by hypermail 2b25 : Mon Oct 22 2001 - 09:43:33 CDT