1curl_getenv(3)                  libcurl Manual                  curl_getenv(3)
2
3
4

NAME

6       curl_getenv - return value for environment name
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       char *curl_getenv(const char *name);
12

DESCRIPTION

14       curl_getenv() is a portable wrapper for the getenv() function, meant to
15       emulate its behaviour and provide an identical interface for all  oper‐
16       ating systems libcurl builds on (including win32).
17

AVAILABILITY

19       This  function  will  be  removed from the public libcurl API in a near
20       future. It will instead be made "available" by source code access only,
21       and then as curlx_getenv().
22

RETURN VALUE

24       If  successful,  curl_getenv()  returns  a  pointer to the value of the
25       specified environment. The memory it refers to  is  malloc()ed  so  the
26       application  must  free()  this when the data is no longer needed. When
27       curl_getenv(3) fails to find the specified  name,  it  returns  a  null
28       pointer.
29

NOTE

31       Under  unix  operating  systems,  there isn't any point in returning an
32       allocated memory, although other systems won't work  properly  if  this
33       isn't  done.  The  unix implementation thus has to suffer slightly from
34       the drawbacks of other systems.
35

SEE ALSO

37       getenv(3C),
38
39
40
41libcurl 7.61.1                 February 03, 2016                curl_getenv(3)
Impressum