uuid in linux vs uuid in window[Parser]

uuid in linux vs uuid in window


You are trying to transform a string uuid into an uuid:



Use:



Under windows:



#include <rpc.h>
RPC_STATUS RPC_ENTRY UuidFromString(
unsigned char __RPC_FAR *StringUuid,
UUID __RPC_FAR *Uuid
);


Under linux:

#include <uuid/uuid.h>


int uuid_parse( char *in, uuid_t uu);


DESCRIPTION

The uuid_parse function converts the UUID string given by in into the binary representation. The 
input UUID is a string of the form 1b4e28ba-2fa1-11d2-883f-b9a761bde3fb (in printf(3) format 
"%08x-%04x-%04x-%04x-%012x", 36 bytes plus the trailing '\0').
阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ghlfllz/article/details/6876181
个人分类: C++
上一篇浅述MongoDB的管理操作
下一篇MongoDB(自动分片+shard备份) 机器故障 (使用kill -9仿真) 稳定性测试
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭