OpenDOF Project
DOF_PCR_DECLSPEC int PCRMem_Compare ( const void *  buf1,
const void *  buf2,
uint32  n 
)

Compare the contents of two memory locations for equality.

Parameters
buf1Pointer to first input buffer. May not be NULL unless n == 0.
buf2Pointer to second input buffer. May not be NULL unless n == 0.
nByte count to compare. Must be >0 for compare to take place.
Returns
The return value is a standard integer, and its exact value is platform dependent. It may not always be correctly represented in 8 bits. It is intended to be used only in comparison, as follows:
  • Zero ( == 0 ) if buf1 == buf2
  • Positive ( > 0 ) if buf1 > buf2
  • Negative ( < 0 ) if buf1 < buf2
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22