1 #pragma once 2 #ifndef IWUUID_H 3 #define IWUUID_H 4 5 #include "basedefs.h" 6 7 IW_EXTERN_C_START 8 9 #define IW_UUID_STR_LEN 36 10 11 /** 12 * Creates random UUID v4 string and fill a provided `buf` 13 * with capacity of 36 bytes at least. 14 * @note Does't write terminating `NULL` byte. 15 */ 16 IW_EXPORT void iwu_uuid4_fill(char dest[static IW_UUID_STR_LEN]); 17 18 IW_EXPORT bool iwu_uuid_valid(const char *uuid); 19 20 IW_EXTERN_C_END 21 22 #endif 23