X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fhashkit_create.rst;h=e0c9c71c0fd48c06cae541faad9347fad45def16;hb=088eed04d829b8cf6591201564118c356d3cf935;hp=4fa5974600ae5c03c34d107744395ab79ee971d3;hpb=49fc1e5ea4ea006f4a2ac71428833760f6fac030;p=awesomized%2Flibmemcached diff --git a/docs/hashkit_create.rst b/docs/hashkit_create.rst index 4fa59746..e0c9c71c 100644 --- a/docs/hashkit_create.rst +++ b/docs/hashkit_create.rst @@ -1,46 +1,31 @@ -.. highlight:: perl +============================ +Creating a hashkit structure +============================ -**** -NAME -**** - - -hashkit_create, hashkit_clone, hashkit_free, hashkit_is_allocated - -Create and destroy hashkit objects - - -******* -LIBRARY -******* - - -C Library for hashing algorithms (libhashkit, -lhashkit) - - -******** +-------- SYNOPSIS -******** - +-------- +C Library for hashing algorithms (libmemcached, -lhashkit) -.. code-block:: perl - #include +#include - hashkit_st *hashkit_create(hashkit_st *hash); +.. c:function:: 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); +.. c:function:: hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *ptr); + +.. c:function:: void hashkit_free(hashkit_st *hash); +.. c:function:: bool hashkit_is_allocated(const hashkit_st *hash); +Compile and link with -lmemcached -*********** + +----------- DESCRIPTION -*********** +----------- The hashkit_create() function initializes a hashkit object for use. If @@ -59,9 +44,9 @@ The hashkit_is_allocated() reports where the memory was allocated for a hashkit object. -************ +------------ RETURN VALUE -************ +------------ hashkit_create() and hashkit_clone() will return NULL on failure or @@ -72,19 +57,10 @@ object was allocated inside of hashkit_create() or hashkit_clone(), otherwise it is false and was user-supplied memory. -**** +---- HOME -**** +---- To find out more information please check: -`https://launchpad.net/libmemcached `_ - - -****** -AUTHOR -****** - - -Brian Aker, - +`http://libmemcached.org/ `_