X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fman%2Fhashkit_clone.3;h=80611d27473d892281dc78e7ba9711ddb675c826;hb=20671681ff4e13ed84be72b699f71a90337245cd;hp=cd2bf026e71222f6be1a68a3e992c80efa6597f9;hpb=2a1e29bce497c25fad73b9d74db4a3daf74413b5;p=m6w6%2Flibmemcached diff --git a/docs/man/hashkit_clone.3 b/docs/man/hashkit_clone.3 index cd2bf026..d706c110 100644 --- a/docs/man/hashkit_clone.3 +++ b/docs/man/hashkit_clone.3 @@ -1,4 +1,4 @@ -.TH "HASHKIT_CLONE" "3" "April 09, 2011" "0.47" "libmemcached" +.TH "HASHKIT_CLONE" "3" "April 09, 2012" "1.0.6" "libmemcached" .SH NAME hashkit_clone \- libhashkit Documentation . @@ -30,54 +30,62 @@ level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] .. .\" Man page generated from reStructeredText. . -.sp -Create and destroy hashkit objects -.SH LIBRARY -.sp -C Library for hashing algorithms (libmemcached, \-lhashkit) .SH SYNOPSIS .sp -.nf -.ft C -#include - -hashkit_st *hashkit_create(hashkit_st *hash); - -hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *ptr); - -void hashkit_free(hashkit_st *hash); - -bool hashkit_is_allocated(const hashkit_st *hash); -.ft P -.fi +#include +.INDENT 0.0 +.TP +.B hashkit_st +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%hashkit_st\fP *hashkit_create(\fI\%hashkit_st\fP\fI\ *hash\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B \fI\%hashkit_st\fP *hashkit_clone(\fI\%hashkit_st\fP\fI\ *destination\fP, const \fI\%hashkit_st\fP\fI\ *ptr\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B void hashkit_free(\fI\%hashkit_st\fP\fI\ *hash\fP) +.UNINDENT +.INDENT 0.0 +.TP +.B bool hashkit_is_allocated(const \fI\%hashkit_st\fP\fI\ *hash\fP) +.UNINDENT +.sp +Compile and link with \-lhashkit .SH DESCRIPTION .sp -The hashkit_create() function initializes a hashkit object for use. If +The \fI\%hashkit_create()\fP function initializes a hashkit object for use. If you pass a NULL argument for hash, then the memory for the object is allocated. If you specify a pre\-allocated piece of memory, that is initialized for use. .sp -The hashkit_clone() function initializes a hashkit object much like -hashkit_create(), but instead of using default settings it will use +The \fI\%hashkit_clone()\fP function initializes a hashkit object much like +\fI\%hashkit_create()\fP, but instead of using default settings it will use the settings of the ptr hashkit object. .sp -The hashkit_free() frees any resources being consumed by the hashkit -objects that were initialized with hashkit_create() or hashkit_clone(). +The \fI\%hashkit_free()\fP frees any resources being consumed by the hashkit +objects that were initialized with \fI\%hashkit_create()\fP or \fI\%hashkit_clone()\fP. .sp -The hashkit_is_allocated() reports where the memory was allocated +The \fI\%hashkit_is_allocated()\fP reports where the memory was allocated for a hashkit object. .SH RETURN VALUE .sp -hashkit_create() and hashkit_clone() will return NULL on failure or -non\-NULL on success. +\fI\%hashkit_create()\fP and \fI\%hashkit_clone()\fP will return NULL on +failure or non\-NULL on success. .sp -hashkit_is_allocated() returns true if the memory for the hashkit -object was allocated inside of hashkit_create() or hashkit_clone(), -otherwise it is false and was user\-supplied memory. +\fI\%hashkit_is_allocated()\fP returns true if the memory for the hashkit +object was allocated inside of \fI\%hashkit_create()\fP or +\fI\%hashkit_clone()\fP, otherwise it is false and was user\-supplied memory. .SH HOME .sp To find out more information please check: -\fI\%https://launchpad.net/libmemcached\fP +\fI\%http://libmemcached.org/\fP +.SH SEE ALSO +.sp +\fIhashkit_create(3)\fP \fIhashkit_value(3)\fP \fIhashkit_set_hash_fn(3)\fP .SH AUTHOR Brian Aker .SH COPYRIGHT