theoretically - when using unint16_t (unsigned integer of size 16) I have two arrays of these unsigned int and i am going to use
memcmp
for example:
uint16_t a[ARRAYSIZE] = {0,1,2,3,4,5,6,7,8,9,10};
uint16_t b[ARRAYSIZE] = {0,1,2,3,4,5,6,7,8,9,10};
if (memcmp(a,b , sizeof(uint16_t) * 16) == 0)
{
return true;
}else
{
return false;
}
My really question is do i need to use strcpy?? am i going down the correct path or is there an alternitive to using it ?