diff options
Diffstat (limited to 'docs/libcurl/curl_global_cleanup.3')
-rw-r--r-- | docs/libcurl/curl_global_cleanup.3 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/libcurl/curl_global_cleanup.3 b/docs/libcurl/curl_global_cleanup.3 index 9426bec05..b88f012a1 100644 --- a/docs/libcurl/curl_global_cleanup.3 +++ b/docs/libcurl/curl_global_cleanup.3 @@ -49,6 +49,16 @@ containing libcurl is dynamically unloaded while libcurl-created threads are still running then your program may crash or other corruption may occur. We recommend you do not run libcurl from any module that may be unloaded dynamically. This behavior may be addressed in the future. +.SH EXAMPLE +.nf + curl_global_init(CURL_GLOBAL_DEFAULT); + + /* use libcurl, then before exiting... */ + + curl_global_cleanup(); +.fi +.SH AVAILABILITY +Added in 7.8 .SH RETURN VALUE None .SH "SEE ALSO" |