+{
+ if (!uuid_from_string_prefix(uuid, s)) {
+ return false;
+ } else if (s[UUID_LEN] != '\0') {
+ uuid_zero(uuid);
+ return false;
+ } else {
+ return true;
+ }
+}
+
+/* Same as uuid_from_string() but s[UUID_LEN] is not required to be a null byte
+ * to succeed; that is, 's' need only begin with UUID syntax, not consist
+ * entirely of it. */
+bool
+uuid_from_string_prefix(struct uuid *uuid, const char *s)