pips_guid_copy()

Updated: April 19, 2023

Copy a GUID value into the current instance

Synopsis:

#include <pips/pips.h>
pips_guid_t* pips_guid_copy(pips_guid_t *dest,
                            const pips_guid_t *const src)

Arguments:

dest
A pointer to the pips_guid_t instance into which the GUID value will be copied
src
A pointer to a pips_guid_t instance containing the value to copy

Library:

pips-client

Description:

This function copies the GUID value from the given source instance into the current pips_guid_t instance, which is represented in dest.

Returns:

On success, a pointer to the current GUID instance containing an updated value. On error, NULL (errno is set).

Errors:

  • EINVAL: The source and/or destination GUID is invalid.