lua-users home
lua-l archive

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


Luiz Henrique de Figueiredo wrote:
Is there a reason for it not being there, or is it just an oversight?


setenv is not an ANSI C library function.
setenv is available in the Posix library.

Thanks, although it uses the Posix name of 'putenv', which is much stupider :-)

I didn't see it because I thought this:

    http://lua-users.org/lists/lua-l/1997-09/msg00022.html

documented that library and it does not mention putenv. But I see it is there in the source.

But this begs the question about which library I should use. They have overlapping functionality. And the Posix library have overlapping functionality with lfs. Ahhhhhhhhh!

It seems like there should be some grand unification of all this to keep the poor programmer from shooting himself in the head and ruining a perfectly good LCD monitor :-)

--
chris marrin                ,""$,
chris@marrin.com          b`    $                             ,,.
                        mP     b'                            , 1$'
        ,.`           ,b`    ,`                              :$$'
     ,|`             mP    ,`                                       ,mm
   ,b"              b"   ,`            ,mm      m$$    ,m         ,`P$$
  m$`             ,b`  .` ,mm        ,'|$P   ,|"1$`  ,b$P       ,`  :$1
 b$`             ,$: :,`` |$$      ,`   $$` ,|` ,$$,,`"$$     .`    :$|
b$|            _m$`,:`    :$1   ,`     ,$Pm|`    `    :$$,..;"'     |$:
P$b,      _;b$$b$1"       |$$ ,`      ,$$"             ``'          $$
 ```"```'"    `"`         `""`        ""`                          ,P`
"As a general rule,don't solve puzzles that open portals to Hell"'