* Sys.setenv or equivalent?
@ 2005-04-22 1:12 Eric Cooper
2005-04-22 3:07 ` [Caml-list] " Matt Gushee
0 siblings, 1 reply; 3+ messages in thread
From: Eric Cooper @ 2005-04-22 1:12 UTC (permalink / raw)
To: caml-list
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.
--
Eric Cooper e c c @ c m u . e d u
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Sys.setenv or equivalent?
2005-04-22 1:12 Sys.setenv or equivalent? Eric Cooper
@ 2005-04-22 3:07 ` Matt Gushee
2005-04-22 15:29 ` Eric Cooper
0 siblings, 1 reply; 3+ messages in thread
From: Matt Gushee @ 2005-04-22 3:07 UTC (permalink / raw)
To: caml-list
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Sys.setenv or equivalent?
2005-04-22 3:07 ` [Caml-list] " Matt Gushee
@ 2005-04-22 15:29 ` Eric Cooper
0 siblings, 0 replies; 3+ messages in thread
From: Eric Cooper @ 2005-04-22 15:29 UTC (permalink / raw)
To: Matt Gushee; +Cc: caml-list
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-04-22 15:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-22 1:12 Sys.setenv or equivalent? Eric Cooper
2005-04-22 3:07 ` [Caml-list] " Matt Gushee
2005-04-22 15:29 ` Eric Cooper
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox