Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Sys.setenv or equivalent?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Eric Cooper <ecc@c...>
Subject: Re: [Caml-list] Sys.setenv or equivalent?
On Thu, Apr 21, 2005 at 09:07:04PM -0600, Matt Gushee wrote:
> Eric Cooper wrote:
> >Is there any way to do setenv() from within OCaml?  I want to set an
> >environment variable that will be used by a C library that my OCaml
> >program calls.  I know it's a simple C stub, but it would be nice if
> >it were in Sys along with getenv.
> How about Unix.putenv?

Thanks.  It didn't occur to me to search for anything but "setenv".

Eric Cooper             e c c @ c m u . e d u