March 13, 2003 getenv | ||||
---|---|---|---|---|
| ||||
Firstly, apologies for what may be a sequence of dumb questions, as I've not been working with D since the middle of last year. My question is, how do I access the C-function getenv? I've tried "import c.stdlib" but that does nothing. Is there an already established preferred alternative. Thanks Matthew |
March 13, 2003 Re: getenv | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew Wilson | "Matthew Wilson" <dmd@synesis.com.au> wrote in message news:b4p4ef$31bl$1@digitaldaemon.com... > My question is, how do I access the C-function getenv? I've tried "import c.stdlib" but that does nothing. Is there an already established preferred alternative. extern (C) char* getenv(char*); should do it. |
Copyright © 1999-2021 by the D Language Foundation