Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Networking With Open Transport / Part 2 - Open Transport Reference
Chapter 27 - Utilities Reference / Functions
Memory Manipulation Utility Functions /


OTMemcmp

Compares the contents of two memory locations.

C INTERFACE
Boolean OTMemcmp    (constant void* mem1,
                     const void* mem2,
                     size_t nBytes)
C++ INTERFACE
None. C++ applications use the C interface to this function.

PARAMETERS
mem1
A pointer to a memory location whose contents you are comparing with those at the location indicated by the mem2 parameter.
mem2
A pointer to the memory location whose contents you are comparing with those at the location indicated by the mem1 parameter.
nBytes
The number of bytes of memory you want to compare.
function result
The function returns a value of true if the indicated amount of memory at the two locations is the same.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 JAN 1998