4
<!-- Manpage converted by man2html 3.0.1 -->
8
curl_global_init - Global libcurl initialisation
12
<H2>SYNOPSIS</H2><PRE>
13
<B>#include</B> <B><curl/curl.h></B>
15
<B>CURLcode</B> <B>curl_global_init(long</B> <I>flags</I><B>);</B>
19
<H2>DESCRIPTION</H2><PRE>
20
This function should only be called once (no matter how many
21
threads or libcurl sessions that'll be used) by every appli�
22
cation that uses libcurl.
24
If this function hasn't been invoked when <I>curl</I><B>_</B><I>easy</I><B>_</B><I>init</I> is
25
called, it will be done automatically by libcurl.
27
The flags option is a bit pattern that tells libcurl exact
28
what features to init, as described below. Set the desired
29
bits by ORing the values together.
31
You must however <B>always</B> use the <I>curl</I><B>_</B><I>global</I><B>_</B><I>cleanup</I> func�
32
tion, as that cannot be called automatically for you by
35
Calling this function more than once will cause unpre�
38
This function was added in libcurl 7.8.
43
<B>CURL_GLOBAL_ALL</B>
44
Initialize everything possible. This sets all known
47
<B>CURL_GLOBAL_SSL</B>
50
<B>CURL_GLOBAL_WIN32</B>
51
Initialize the Win32 socket libraries. (added in
54
<B>CURL_GLOBAL_NOTHING</B>
55
Initialise nothing extra. This sets no bit.
59
<H2>RETURN VALUE</H2><PRE>
60
If this function returns non-zero, something went wrong and
61
you cannot use the other curl functions.
65
<H2>SEE ALSO</H2><PRE>
66
<B>curl_global_cleanup(3)</B>,
126
Man(1) output converted with
127
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>