if (memcmp_my(pframe->did,func_items[i].di,2) == 0) break;
uint8 memcmp_my(const void *s1, const void *s2, uint8 n)
{
while (n && *(char*)s1 == *(char*)s2)
{
s1 = (char*)s1 + 1;
s2 = (char*)s2 + 1;
n--;
}
if(n > 0)
{
return(1);
}
return(0);
}
这个函数的意思是用来检查两个字符串是否相同。