}
/*
- * s must point to enough space
+ * s must point to enough space, i.e. at least 37 bytes.
+ * this is constrained enough that sprintf could
+ * probably be avoided
*/
char *pd_uuid_get_string(pd_uuid_t *uuid, char *s) {
char *r;
return s;
}
+/*
+ * might be faster to sscanf in four bytes at a time
+ * and using htonl()
+ * A nybble loop might be faster yet.
+ */
int pd_uuid_set_string(pd_uuid_t *uuid, char *s) {
unsigned int byte;
int i;