|
DOF_PCR_DECLSPEC int PCRMem_Compare |
( |
const void * |
buf1, |
|
|
const void * |
buf2, |
|
|
uint32 |
n |
|
) |
| |
Compare the contents of two memory locations for equality.
- Parameters
-
buf1 | Pointer to first input buffer. May not be NULL unless n == 0. |
buf2 | Pointer to second input buffer. May not be NULL unless n == 0. |
n | Byte 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
|