testdbgetulid.cpp

来自「UDP对QQ来说太重要了。 UDP和TCP是同一个层上的协议」· C++ 代码 · 共 30 行

CPP
30
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?