diff options
author | Yu Jiung <jiung.yu@samsung.com> | 2016-11-09 11:23:06 +0900 |
---|---|---|
committer | Yu Jiung <jiung.yu@samsung.com> | 2016-11-09 11:23:15 +0900 |
commit | 8e609b5f488d486a9e066ed494218d966f489938 (patch) | |
tree | 0a169eb7025401e0a14ab5d5e74db5b27954f591 /ares_library_init.3 | |
parent | eb886f120599b2a184db20b527db6dfdfcb7852e (diff) | |
download | c-ares-8e609b5f488d486a9e066ed494218d966f489938.tar.gz c-ares-8e609b5f488d486a9e066ed494218d966f489938.tar.bz2 c-ares-8e609b5f488d486a9e066ed494218d966f489938.zip |
Imported Upstream version 1.12.0upstream/1.12.0
Change-Id: I6a571bddd24d1cb7d64b74bc66e878ccba2ce638
Diffstat (limited to 'ares_library_init.3')
-rw-r--r-- | ares_library_init.3 | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/ares_library_init.3 b/ares_library_init.3 index 8959a80..4734f92 100644 --- a/ares_library_init.3 +++ b/ares_library_init.3 @@ -19,12 +19,14 @@ ares_library_init \- c-ares library initialization .SH SYNOPSIS .nf -.B #include <ares.h> -.PP -.B int ares_library_init(int \fIflags\fP) -.B int ares_library_init_mem(int \fIflags\fP, void *(*\fIamalloc\fP)(size_t), void (*\fIafree\fP)(void *)) -.PP -.B cc file.c -lcares +#include <ares.h> + +int ares_library_init(int \fIflags\fP) + +int ares_library_init_mem(int \fIflags\fP, + void *(*\fIamalloc\fP)(size_t), + void (*\fIafree\fP)(void *ptr), + void (*\fIarealloc\fP)(void *ptr, size_t size)) .fi .SH DESCRIPTION .PP @@ -54,9 +56,9 @@ familiar with it and trying to control some internal c-ares feature. .PP The .B ares_library_init_mem -function allows the caller to provide memory management -functions that the c-ares library will be use instead of \fImalloc(3)\fP and -\fIfree(3)\fP. +function allows the caller to provide memory management functions that the +c-ares library will be use instead of \fImalloc(3)\fP, \fIfree(3)\fP and +\fIrealloc(3)\fP. .PP .B This function is not thread safe. You have to call it once the program has started, but this call must be done |