1 .\" $Id: curl_getenv.3,v 1.1.1.1 2008-09-23 16:32:05 hoffman Exp $
3 .TH curl_getenv 3 "30 April 2004" "libcurl 7.12" "libcurl Manual"
5 curl_getenv - return value for environment name
7 .B #include <curl/curl.h>
9 .BI "char *curl_getenv(const char *" name ");"
12 curl_getenv() is a portable wrapper for the getenv() function, meant to
13 emulate its behaviour and provide an identical interface for all operating
14 systems libcurl builds on (including win32).
16 This function will be removed from the public libcurl API in a near future. It
17 will instead be made "available" by source code access only, and then as
20 If successful, curl_getenv() returns a pointer to the value of the specified
21 environment. The memory it refers to is malloc()ed so the application must
22 free() this when the data is no longer needed. When \fIcurl_getenv(3)\fP fails
23 to find the specified name, it returns a null pointer.
25 Under unix operating systems, there isn't any point in returning an allocated
26 memory, although other systems won't work properly if this isn't done. The
27 unix implementation thus have to suffer slightly from the drawbacks of other