?? 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 + -