⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 一个uuid生成算法的c语言实现 --- win32版本.mht

📁 UUID算法的完全实现,很不好找的,很有用给大家分享!
💻 MHT
📖 第 1 页 / 共 5 页
字号:
data2;</SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" align=3Dleft><SPAN=20
style=3D"FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp; <SPAN=20
style=3D"COLOR: blue">unsigned</SPAN> <SPAN=20
style=3D"COLOR: blue">short</SPAN>&nbsp;&nbsp;&nbsp;&nbsp; =
data3;</SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt" align=3Dleft><SPAN=20
style=3D"FONT-SIZE: 9pt">&nbsp;&nbsp;&nbsp;&nbsp; <SPAN=20
style=3D"COLOR: blue">unsigned</SPAN> <SPAN style=3D"COLOR: =
blue">char</SPAN>=20
&nbsp;&nbsp;&nbsp;&nbsp; data4[8];</SPAN></DIV>
<DIV style=3D"MARGIN-LEFT: 21pt"><SPAN style=3D"FONT-SIZE: 9pt">}=20
uuid_t;</SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV>=E5=AE=83=E7=9A=84=E7=BB=93=E6=9E=84=E5=A4=A7=E5=B0=8F=E4=B8=BA16=E4=
=B8=AA=E5=AD=97=E8=8A=82=E3=80=82=E5=8D=B3sizeof(uuid_t)=3D=3D16=E4=B8=BA=
TRUE=E3=80=82=E5=86=99=E6=88=9016=E8=BF=9B=E5=88=B6=E5=AD=97=E7=AC=A6=E4=B8=
=B2=E7=9A=84=E6=A0=BC=E5=BC=8F=EF=BC=8C=E4=B8=80=E8=88=AC=E4=B8=BA=EF=BC=9A=
</DIV>
<DIV style=3D"TEXT-INDENT: 21pt"><SPAN=20
style=3D"FONT-SIZE: 9pt; COLOR: =
#a31515">"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"</SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV=20
style=3D"TEXT-INDENT: =
21pt">=E4=B8=8A=E9=9D=A2=E7=9A=84=E5=AD=97=E7=AC=A6=E4=B8=B2=E5=BD=A2=E5=BC=
=8F=EF=BC=8C=E5=8D=A0=E7=94=A836=E4=B8=AA=E5=AD=97=E7=AC=A6=EF=BC=8C=E4=B8=
=8D=E5=8C=85=E6=8B=AC=E7=BB=93=E5=B0=BE=E7=A9=BA=E5=AD=97=E7=AC=A6=E2=80=99=
\0=E2=80=99=E3=80=82=E6=89=80=E4=BB=A5=EF=BC=8C=E8=A6=81=E6=83=B3=E5=AE=B9=
=E7=BA=B3=E4=B8=80=E4=B8=AAUUID=E5=AD=97=E7=AC=A6=E4=B8=B2=EF=BC=8C=E5=BF=
=85=E9=A1=BB=E5=A3=B0=E6=98=8E=E4=B8=BA=E4=B8=80=E4=B8=AAchar[36+1]=E7=9A=
=84=E5=AD=97=E7=AC=A6=E6=95=B0=E7=BB=84=E3=80=82</DIV>
<DIV>&nbsp;</DIV>
<DIV=20
style=3D"TEXT-INDENT: =
21pt">=E4=BB=A5=E8=BD=AF=E4=BB=B6=E7=AE=97=E6=B3=95=E5=AE=9E=E7=8E=B0UUID=
=E9=9D=9E=E5=B8=B8=E6=9C=89=E7=8E=B0=E5=AE=9E=E6=84=8F=E4=B9=89=E3=80=82=E5=
=8F=82=E8=80=83RFC4122=E6=96=87=E6=A1=A3=E5=92=8C=E5=85=B6=E4=BB=96=E4=B8=
=80=E4=BA=9B=E5=BC=80=E6=BA=90=E4=BB=A3=E7=A0=81=EF=BC=8C=E6=88=91=E5=86=99=
=E4=BA=86=E4=B8=80=E4=B8=AAWIN32=E4=B8=8B=E7=9A=84UUID=E5=AE=9E=E7=8E=B0C=
=E8=AF=AD=E8=A8=80=E7=A8=8B=E5=BA=8F=E2=80=94=E2=80=94UUID32.c=E3=80=82=E7=
=A8=8B=E5=BA=8F=E7=AC=A6=E5=90=88RFC4122=E6=A0=87=E5=87=86=E3=80=82=E7=A8=
=8B=E5=BA=8F=E4=B8=8D=E4=BD=86=E5=AE=9E=E7=8E=B0=E5=88=9B=E5=BB=BAUUID=E5=
=92=8CUUID=20
String=EF=BC=8C=E8=BF=98=E5=8F=AF=E4=BB=A5=E5=AF=B9UUID=E8=BF=9B=E8=A1=8C=
=E5=AD=97=E7=AC=A6=E5=92=8C=E6=97=B6=E9=97=B4=E4=B8=8A=E7=9A=84=E6=AF=94=E8=
=BE=83=E3=80=82=E8=BF=98=E5=8F=AF=E4=BB=A5=E4=BB=8EUUID=E4=BB=8E=E6=8F=90=
=E5=8F=96=E6=97=B6=E9=97=B4=E6=88=B3=EF=BC=88=E7=B2=BE=E5=BA=A6=E5=88=B0=E7=
=A7=92=EF=BC=89=E3=80=82=E5=A4=B4=E6=96=87=E4=BB=B6uuid32.h=E5=AE=9A=E4=B9=
=89=E5=A6=82=E4=B8=8B=EF=BC=9A</DIV>
<DIV style=3D"TEXT-INDENT: 21pt"></DIV>
<DIV style=3D"TEXT-INDENT: 21pt">
<DIV=20
style=3D"BORDER-RIGHT: windowtext 0.5pt solid; PADDING-RIGHT: 5.4pt; =
BORDER-TOP: windowtext 0.5pt solid; PADDING-LEFT: 5.4pt; BACKGROUND: =
#e6e6e6; PADDING-BOTTOM: 4px; BORDER-LEFT: windowtext 0.5pt solid; =
WIDTH: 95%; WORD-BREAK: break-all; PADDING-TOP: 4px; BORDER-BOTTOM: =
windowtext 0.5pt solid">
<DIV><SPAN style=3D"COLOR: #008000">/*</SPAN><SPAN=20
style=3D"COLOR: =
#008000">&nbsp;uuid32.h&nbsp;<BR>&nbsp;&nbsp;&nbsp;2007-09-15&nbsp;Last&n=
bsp;created&nbsp;by&nbsp;cheungmine.<BR>&nbsp;&nbsp;&nbsp;Partly&nbsp;rig=
hts&nbsp;reserved&nbsp;by&nbsp;cheungmine.<BR></SPAN><SPAN=20
style=3D"COLOR: #008000">*/</SPAN><SPAN=20
style=3D"COLOR: =
#000000"><BR>#ifndef&nbsp;UUID32_H_INCLUDED<BR></SPAN><SPAN=20
style=3D"COLOR: #0000ff">#define</SPAN><SPAN=20
style=3D"COLOR: #000000">&nbsp;UUID32_H_INCLUDED</SPAN><SPAN=20
style=3D"COLOR: #000000"><BR><BR>#include&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #000000">&lt;</SPAN><SPAN=20
style=3D"COLOR: #000000">stdlib.h</SPAN><SPAN=20
style=3D"COLOR: #000000">&gt;</SPAN><SPAN=20
style=3D"COLOR: #000000"><BR>#include&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #000000">&lt;</SPAN><SPAN=20
style=3D"COLOR: #000000">assert.h</SPAN><SPAN=20
style=3D"COLOR: #000000">&gt;</SPAN><SPAN=20
style=3D"COLOR: #000000"><BR>#include&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #000000">&lt;</SPAN><SPAN=20
style=3D"COLOR: #0000ff">string</SPAN><SPAN style=3D"COLOR: =
#000000">.h</SPAN><SPAN=20
style=3D"COLOR: #000000">&gt;</SPAN><SPAN=20
style=3D"COLOR: #000000"><BR>#include&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #000000">&lt;</SPAN><SPAN=20
style=3D"COLOR: #000000">memory.h</SPAN><SPAN=20
style=3D"COLOR: #000000">&gt;</SPAN><SPAN=20
style=3D"COLOR: #000000"><BR><BR>#include&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #000000">"</SPAN><SPAN=20
style=3D"COLOR: #000000">cdatatype.h</SPAN><SPAN=20
style=3D"COLOR: #000000">"</SPAN><SPAN=20
style=3D"COLOR: #000000"><BR><BR>typedef&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #0000ff">struct</SPAN><SPAN=20
style=3D"COLOR: =
#000000">&nbsp;_timestamp_t<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;BYTE&nbsp;&nb=
sp;&nbsp;&nbsp;tm_sec;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #008000">/*</SPAN><SPAN=20
style=3D"COLOR: =
#008000">&nbsp;Seconds&nbsp;after&nbsp;minute&nbsp;(0&nbsp;=E2=80=93&nbsp=
;59).&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #008000">*/</SPAN><SPAN=20
style=3D"COLOR: =
#000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;BYTE&nbsp;&nbsp;&nbsp;&nbsp;tm_min;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #008000">/*</SPAN><SPAN=20
style=3D"COLOR: =
#008000">&nbsp;Minutes&nbsp;after&nbsp;hour&nbsp;(0&nbsp;=E2=80=93&nbsp;5=
9).&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #008000">*/</SPAN><SPAN=20
style=3D"COLOR: =
#000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;BYTE&nbsp;&nbsp;&nbsp;&nbsp;tm_hour;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<=
/SPAN><SPAN=20
style=3D"COLOR: #008000">/*</SPAN><SPAN=20
style=3D"COLOR: =
#008000">&nbsp;Hours&nbsp;after&nbsp;midnight&nbsp;(0&nbsp;=E2=80=93&nbsp=
;23).&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #008000">*/</SPAN><SPAN=20
style=3D"COLOR: =
#000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;BYTE&nbsp;&nbsp;&nbsp;&nbsp;tm_mday;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<=
/SPAN><SPAN=20
style=3D"COLOR: #008000">/*</SPAN><SPAN=20
style=3D"COLOR: =
#008000">&nbsp;Day&nbsp;of&nbsp;month&nbsp;(1&nbsp;=E2=80=93&nbsp;31).&nb=
sp;</SPAN><SPAN=20
style=3D"COLOR: #008000">*/</SPAN><SPAN=20
style=3D"COLOR: =
#000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;BYTE&nbsp;&nbsp;&nbsp;&nbsp;tm_mon;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #008000">/*</SPAN><SPAN=20
style=3D"COLOR: =
#008000">&nbsp;Month&nbsp;(0&nbsp;=E2=80=93&nbsp;11;&nbsp;January&nbsp;=3D=
&nbsp;0).&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #008000">*/</SPAN><SPAN=20
style=3D"COLOR: =
#000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;BYTE&nbsp;&nbsp;&nbsp;&nbsp;tm_wday;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<=
/SPAN><SPAN=20
style=3D"COLOR: #008000">/*</SPAN><SPAN=20
style=3D"COLOR: =
#008000">&nbsp;Day&nbsp;of&nbsp;week&nbsp;(0&nbsp;=E2=80=93&nbsp;6;&nbsp;=
Sunday&nbsp;=3D&nbsp;0).&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #008000">*/</SPAN><SPAN=20
style=3D"COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #0000ff">short</SPAN><SPAN=20
style=3D"COLOR: =
#000000">&nbsp;&nbsp;&nbsp;&nbsp;tm_year;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #008000">/*</SPAN><SPAN=20
style=3D"COLOR: =
#008000">&nbsp;Year&nbsp;(current&nbsp;year&nbsp;minus&nbsp;1900).&nbsp;<=
/SPAN><SPAN=20
style=3D"COLOR: #008000">*/</SPAN><SPAN=20
style=3D"COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #0000ff">short</SPAN><SPAN=20
style=3D"COLOR: =
#000000">&nbsp;&nbsp;&nbsp;&nbsp;tm_yday;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #008000">/*</SPAN><SPAN=20
style=3D"COLOR: =
#008000">&nbsp;Day&nbsp;of&nbsp;year&nbsp;(0&nbsp;=E2=80=93&nbsp;365;&nbs=
p;January&nbsp;1&nbsp;=3D&nbsp;0).&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #008000">*/</SPAN><SPAN=20
style=3D"COLOR: #000000"><BR>&nbsp;&nbsp;&nbsp;&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #0000ff">long</SPAN><SPAN=20
style=3D"COLOR: =
#000000">&nbsp;&nbsp;&nbsp;&nbsp;tm_fraction;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #008000">/*</SPAN><SPAN=20
style=3D"COLOR: =
#008000">&nbsp;Fraction&nbsp;little&nbsp;than&nbsp;1&nbsp;second&nbsp;</S=
PAN><SPAN=20
style=3D"COLOR: #008000">*/</SPAN><SPAN=20
style=3D"COLOR: =
#000000"><BR>}&nbsp;timestamp_t;<BR><BR>typedef&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #0000ff">struct</SPAN><SPAN=20
style=3D"COLOR: =
#000000">&nbsp;_uuid_t<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;unsigned&nbsp;</SP=
AN><SPAN=20
style=3D"COLOR: #0000ff">long</SPAN><SPAN=20
style=3D"COLOR: =
#000000">&nbsp;&nbsp;&nbsp;&nbsp;data1;<BR>&nbsp;&nbsp;&nbsp;&nbsp;unsign=
ed&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #0000ff">short</SPAN><SPAN=20
style=3D"COLOR: =
#000000">&nbsp;&nbsp;&nbsp;&nbsp;data2;<BR>&nbsp;&nbsp;&nbsp;&nbsp;unsign=
ed&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #0000ff">short</SPAN><SPAN=20
style=3D"COLOR: =
#000000">&nbsp;&nbsp;&nbsp;&nbsp;data3;<BR>&nbsp;&nbsp;&nbsp;&nbsp;unsign=
ed&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #0000ff">char</SPAN><SPAN=20
style=3D"COLOR: #000000">&nbsp;&nbsp;&nbsp;&nbsp;data4[</SPAN><SPAN=20
style=3D"COLOR: #000000">8</SPAN><SPAN=20
style=3D"COLOR: #000000">];<BR>}&nbsp;uuid_t;<BR><BR><BR></SPAN><SPAN=20
style=3D"COLOR: #008000">/*</SPAN><SPAN=20
style=3D"COLOR: =
#008000">*<BR>&nbsp;*&nbsp;Checks&nbsp;whether&nbsp;the&nbsp;given&nbsp;s=
tring&nbsp;matches&nbsp;the&nbsp;UUID&nbsp;format.<BR>&nbsp;*&nbsp;&nbsp;=
&nbsp;&nbsp;params:<BR>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[in]&nbsp;uui=
d&nbsp;-&nbsp;the&nbsp;potential&nbsp;UUID&nbsp;string<BR>&nbsp;*&nbsp;&n=
bsp;&nbsp;&nbsp;return&nbsp;<BR>&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TRUE=
&nbsp;if&nbsp;the&nbsp;given&nbsp;string&nbsp;is&nbsp;a&nbsp;UUID,&nbsp;F=
ALSE&nbsp;otherwise<BR>&nbsp;*</SPAN><SPAN=20
style=3D"COLOR: #008000">*/</SPAN><SPAN=20
style=3D"COLOR: #000000"><BR>BOOL&nbsp;is_uuid_string(</SPAN><SPAN=20
style=3D"COLOR: #0000ff">const</SPAN><SPAN=20
style=3D"COLOR: #000000">&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #0000ff">char</SPAN><SPAN=20
style=3D"COLOR: #000000">&nbsp;</SPAN><SPAN style=3D"COLOR: =
#000000">*</SPAN><SPAN=20
style=3D"COLOR: #000000">uuid);<BR><BR></SPAN><SPAN=20
style=3D"COLOR: #008000">/*</SPAN><SPAN=20
style=3D"COLOR: =
#008000">*<BR>&nbsp;*&nbsp;Generates&nbsp;a&nbsp;new&nbsp;UUID.&nbsp;The&=
nbsp;UUID&nbsp;is&nbsp;a&nbsp;time-based&nbsp;time&nbsp;1&nbsp;UUID.<BR>&=
nbsp;*&nbsp;A&nbsp;random&nbsp;per-process&nbsp;node&nbsp;identifier&nbsp=
;is&nbsp;used&nbsp;to&nbsp;avoid&nbsp;keeping&nbsp;global<BR>&nbsp;*&nbsp=
;state&nbsp;and&nbsp;maintaining&nbsp;inter-process&nbsp;synchronization.=
<BR>&nbsp;*</SPAN><SPAN=20
style=3D"COLOR: #008000">*/</SPAN><SPAN style=3D"COLOR: =
#000000"><BR></SPAN><SPAN=20
style=3D"COLOR: #0000ff">void</SPAN><SPAN=20
style=3D"COLOR: #000000">&nbsp;uuid_create(uuid_t</SPAN><SPAN=20
style=3D"COLOR: #000000">*</SPAN><SPAN=20
style=3D"COLOR: #000000">&nbsp;uuid);<BR><BR></SPAN><SPAN=20
style=3D"COLOR: #008000">/*</SPAN><SPAN=20
style=3D"COLOR: =
#008000">*<BR>&nbsp;*&nbsp;Generates&nbsp;a&nbsp;new&nbsp;UUID&nbsp;strin=
g.&nbsp;The&nbsp;returned&nbsp;UUID&nbsp;is&nbsp;a&nbsp;time-based&nbsp;t=
ime&nbsp;1&nbsp;UUID.<BR>&nbsp;*&nbsp;A&nbsp;random&nbsp;per-process&nbsp=
;node&nbsp;identifier&nbsp;is&nbsp;used&nbsp;to&nbsp;avoid&nbsp;keeping&n=
bsp;global<BR>&nbsp;*&nbsp;state&nbsp;and&nbsp;maintaining&nbsp;inter-pro=
cess&nbsp;synchronization.<BR>&nbsp;*&nbsp;&nbsp;return&nbsp;UUID&nbsp;st=
ring&nbsp;(newly&nbsp;allocated)<BR>&nbsp;*</SPAN><SPAN=20
style=3D"COLOR: #008000">*/</SPAN><SPAN style=3D"COLOR: =
#000000"><BR></SPAN><SPAN=20
style=3D"COLOR: #0000ff">char</SPAN><SPAN=20
style=3D"COLOR: #000000">&nbsp;</SPAN><SPAN style=3D"COLOR: =
#000000">*</SPAN><SPAN=20
style=3D"COLOR: #000000">uuid_create_string(</SPAN><SPAN=20
style=3D"COLOR: #0000ff">void</SPAN><SPAN=20
style=3D"COLOR: #000000">);<BR><BR></SPAN><SPAN=20
style=3D"COLOR: #008000">/*</SPAN><SPAN=20
style=3D"COLOR: =
#008000">*<BR>&nbsp;*&nbsp;Generates&nbsp;a&nbsp;name-based&nbsp;(type&nb=
sp;3)&nbsp;UUID&nbsp;string&nbsp;from&nbsp;the&nbsp;given&nbsp;external<B=
R>&nbsp;*&nbsp;identifier.&nbsp;The&nbsp;special&nbsp;namespace&nbsp;UUID=
&nbsp;is&nbsp;used&nbsp;as&nbsp;the&nbsp;namespace&nbsp;of<BR>&nbsp;*&nbs=
p;the&nbsp;generated&nbsp;UUID.<BR>&nbsp;*&nbsp;&nbsp;params<BR>&nbsp;*&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;[in]&nbsp;external&nbsp;-&nbsp;the&nbsp;exter=
nal&nbsp;identifier<BR>&nbsp;*&nbsp;&nbsp;return&nbsp;<BR>&nbsp;*&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;UUID&nbsp;string&nbsp;(newly&nbsp;allocated)<BR>&nb=
sp;*</SPAN><SPAN=20
style=3D"COLOR: #008000">*/</SPAN><SPAN style=3D"COLOR: =
#000000"><BR></SPAN><SPAN=20
style=3D"COLOR: #0000ff">void</SPAN><SPAN=20
style=3D"COLOR: #000000">&nbsp;uuid_create_external(</SPAN><SPAN=20
style=3D"COLOR: #0000ff">const</SPAN><SPAN=20
style=3D"COLOR: #000000">&nbsp;</SPAN><SPAN=20
style=3D"COLOR: #0000ff">char</SPAN><SPAN=20
style=3D"COLOR: #000000">&nbsp;</SPAN><SPAN style=3D"COLOR: =
#000000">*</SPAN><SPAN=20
style=3D"COLOR: #000000">external,&nbsp;uuid_t</SPAN><SPAN=20
style=3D"COLOR: #000000">*</SPAN><SPAN=20
style=3D"COLOR: #000000">&nbsp;uuid);<BR><BR></SPAN><SPAN=20
style=3D"COLOR: #008000">/*</SPAN><SPAN=20
style=3D"COLOR: =
#008000">*<BR>&nbsp;*&nbsp;Translate&nbsp;a&nbsp;uuid_t&nbsp;to&nbsp;a&nb=
sp;uuid&nbsp;string<BR>&nbsp;*&nbsp;&nbsp;return&nbsp;UUID&nbsp;string<BR=
>&nbsp;*</SPAN><SPAN=20
style=3D"COLOR: #008000">*/</SPAN><SPAN style=3D"COLOR: =
#000000"><BR></SPAN><SPAN=20
style=3D"COLOR: #0000ff">char</SPAN><SPAN=20
style=3D"COLOR: #000000">&nbsp;</SPAN><SPAN style=3D"COLOR: =

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -