Changeset aaf9789c in mainline for uspace/lib/c/generic/uuid.c
- Timestamp:
- 2019-02-11T23:08:42Z (6 years ago)
- Children:
- db29c34
- Parents:
- d5a89a3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/uuid.c
rd5a89a3 raaf9789c 67 67 uuid->b[6] = (uuid->b[6] & 0x4F) | 0x40; 68 68 uuid->b[8] = (uuid->b[8] & 0xBF) | 0xB0; 69 69 70 70 rc = EOK; 71 71 error: … … 183 183 if (str == NULL) 184 184 return ENOMEM; 185 185 186 186 const char *format = "%02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x"; 187 187 if (uppercase) … … 189 189 190 190 int ret = snprintf(str, size, format, uuid->b[0], uuid->b[1], uuid->b[2], uuid->b[3], uuid->b[4], uuid->b[5], uuid->b[6], uuid->b[7], uuid->b[8], uuid->b[9], uuid->b[10], uuid->b[11], uuid->b[12], uuid->b[13], uuid->b[14], uuid->b[15]); 191 191 192 192 if (ret != 36) 193 193 return EINVAL;
Note:
See TracChangeset
for help on using the changeset viewer.