nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ OSAL_Memcmp()

int OSAL_Memcmp ( const void *  Ptr1,
const void *  Ptr2,
size_t  Num 
)

Compares data between two buffers.

Parameters
[in]Ptr1Pointer to first buffer.
[in]Ptr2Pointer to second buffer.
[in]NumSize of the data to compare.
Returns
< 0 if the first non-matching byte has a lower value in ptr1 than in ptr2. > 0 if the first non-matching byte has a greater value in ptr1 than in ptr2. 0 if the data in both buffers matches.