📄 testdbgetulid.cpp
字号:
// testDBGetULID.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <string.h>
#include "../../hmdbapi/HMDBGetUniqueLID.h"
int main(int argc, char* argv[])
{
printf("Test HMDBGetUniqueLID\n");
char lid[128]={0};
char lid1[128]={0};
int n=128;
int nRet=HMDBGetUniqueLID(lid,&n);
printf("Ret=%d,GetLID %s.\n",nRet,lid);
//memset(lid,0,128);
nRet+=HMDBGetUniqueLID(lid1,&n);
printf("Ret=%d,GetLID is %s.\n",nRet,lid1);
if (strcmp(lid,lid1)!=0&&!nRet)
puts("OK");
else
puts("FAIL");
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -