Updated: April 19, 2023 |
Convert a GUID to a string
#include <pips/pips.h>
int pips_guid_tostring(const pips_guid_t *const self, pips_guid_str_t *buffer)
This function encodes (formats) the current GUID as a hexadecimal string and stores the result in the given GUID string buffer. This function is a shortcut that saves clients from having to call pips_guid_format(), which has an extra parameter.
On success, the number of characters written to the string buffer; this should almost always be 32. On error, a negative value (errno is set).