FreeBSD的uuid处理小问题
似乎在处理>和<时,和DCE不太一样,改天写个test case看看。
Archived: trackbacks
生成UUID from 2006 Penguin, smashing time! on February 4, 2006 11:36 PM
#include <stdio.h> #include <uuid.h> main() { uuid_t *uuid; char *s; uuid = (uuid_t*)malloc(sizeof(uuid_t)); uuidgen(uuid,1); uuid_to_string(uuid,&s,NULL); printf("%s\n",s); } 一个很简单的生成UUID的例子。… Read More