View source code Display the source code in etc/c/curl.d from which this page was generated on github. Improve this page Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone. Page wiki View or edit the community-maintained wiki page associated with this page.

Function etc.c.curl.curl_global_init_mem

Prototype

extern(C) int curl_global_init_mem(
  long flags,
  void* function(ulong) m,
  void function(void*) f,
  void* function(void*, ulong) r,
  char* function(const(char*)) s,
  void* function(ulong, ulong) c
);

Name

curl_global_init_mem()

Description

curl_global_init() or curl_global_init_mem() should be invoked exactly once for each application that uses libcurl. This function can be used to initialize libcurl and set user defined memory management callback functions. Users can implement memory management routines to check for memory leaks, check for mis-use of the curl library etc. User registered callback routines with be invoked by this library instead of the system memory management routines like malloc, free etc.

Authors

License

Comments