1 #include <stdio.h>
2 #include <uuid/uuid.h>
3
4 uuid_t myuuid;
5
6 int main(void)
7 {
8 unsigned char *p = myuuid;
9 int i = 0;
10
11 uuid_generate(myuuid);
12
13 for (i=0; i<16; i++) {
14 printf("%02x ", p[i]);
15 }
16
17 printf("\n");
18
19 return 0;
20 }
linux C 编程生成uuid码
最新推荐文章于 2024-08-31 11:55:41 发布