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: Matt Gushee <mgushee@h...>
Subject: Re: [Caml-list] Sys.setenv or equivalent?
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?

Matt Gushee
Englewood, CO, USA