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().

  • to

    The to 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().