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

NAME

6       curl_easy_init - Start a libcurl easy session
7

SYNOPSIS

9       #include <curl/curl.h>
10
11       CURL *curl_easy_init( );
12
13

DESCRIPTION

15       This function must be the first function to call, and it returns a CURL
16       easy handle that  you  must  use  as  input  to  other  easy-functions.
17       curl_easy_init initializes curl and this call MUST have a corresponding
18       call to curl_easy_cleanup(3) when the operation is complete.
19
20       If you did not already call curl_global_init(3), curl_easy_init(3) does
21       it  automatically.   This  may be lethal in multi-threaded cases, since
22       curl_global_init(3) is not thread-safe, and it may result  in  resource
23       problems because there is no corresponding cleanup.
24
25       You  are  strongly  advised  to  not allow this automatic behaviour, by
26       calling curl_global_init(3) yourself properly.  See the description  in
27       libcurl(3) of global environment requirements for details of how to use
28       this function.
29
30

RETURN VALUE

32       If this function returns NULL, something went wrong and you cannot  use
33       the other curl functions.
34

SEE ALSO

36       curl_easy_cleanup(3), curl_global_init(3), curl_easy_reset(3)
37
38
39
40libcurl 7.8.1                    4 March 2002                curl_easy_init(3)
Impressum