kv_copy_version()

#include <kvstore.h>

kv_error_t 
kv_copy_version(const kv_version_t *from, kv_version_t **to) 

Copies a version structure.

Parameters

from

The from parameter is the version structure you want to copy. Normally, these are created using kv_get_version().

from

The from parameter references memory into which a pointer to the allocated version structure is copied. Release the resources used by this structure using kv_release_version().

See Also

Key/Value Pair Management Functions