1HASHKIT_CLONE(3)                 libmemcached                 HASHKIT_CLONE(3)
2
3
4

NAME

6       hashkit_clone - libhashkit Documentation
7

SYNOPSIS

9       #include <libhashkit/hashkit.h>
10
11       hashkit_st
12
13       hashkit_st *hashkit_create(hashkit_st *hash)
14
15       hashkit_st         *hashkit_clone(hashkit_st *destination,        const
16       hashkit_st *ptr)
17
18       void hashkit_free(hashkit_st *hash)
19
20       bool hashkit_is_allocated(const hashkit_st *hash)
21
22       Compile and link with -lhashkit
23

DESCRIPTION

25       The hashkit_create() function initializes a hashkit object for use.  If
26       you  pass  a  NULL argument for hash, then the memory for the object is
27       allocated. If you specify a pre-allocated piece of memory, that is ini‐
28       tialized for use.
29
30       The  hashkit_clone()  function  initializes  a hashkit object much like
31       hashkit_create(), but instead of using default settings it will use the
32       settings of the ptr hashkit object.
33
34       The  hashkit_free()  frees  any resources being consumed by the hashkit
35       objects that were initialized with hashkit_create() or hashkit_clone().
36
37       The hashkit_is_allocated() reports where the memory was allocated for a
38       hashkit object.
39

RETURN VALUE

41       hashkit_create()  and  hashkit_clone()  will  return NULL on failure or
42       non-NULL on success.
43
44       hashkit_is_allocated() returns true  if  the  memory  for  the  hashkit
45       object  was  allocated  inside  of hashkit_create() or hashkit_clone(),
46       otherwise it is false and was user-supplied memory.
47

HOME

49       To find out more information please check: http://libmemcached.org/
50

SEE ALSO

52       hashkit_create(3) hashkit_value(3) hashkit_set_hash_fn(3)
53

AUTHOR

55       Brian Aker
56
58       2011-2013, Brian Aker DataDifferential, http://datadifferential.com/
59
60
61
62
631.0.16                         January 31, 2013               HASHKIT_CLONE(3)
Impressum