一个大小为37的数组

wuh*_*chi 4 c linux macos posix

typedef char    __darwin_uuid_string_t[37];
Run Code Online (Sandbox Code Playgroud)

这段代码是从MacOS10.8/user/include/sys/_types.h中排除的.我想知道为什么这里是37号,但不是2的幂?

Ani*_*han 7

UUID的长度为 36个字符,因此形成37个字符的字符串,包括末尾的空字符.

UUID是16个八位字节(128位)的数字.在其规范形式中,UUID由32个十六进制数字表示,显示在由连字符分隔的五个组中,形式为8-4-4-4-12,总共36个字符(32位和4个连字符).