Compares two length byte memory areas.
Syntax
int _MemCmp(void FAR *ptr1, void FAR *ptr2, unsigned int length)
void FAR *ptr1; /* First point to start compare. */
void FAR *ptr2; /* Second point to start compare. */
unsigned int length; /* How much to compare in bytes. */
Remarks
_MemCmp( ) compares each byte in the two areas, starting with the leftmost byte in each, until two bytes don't match. _MemCmp( ) returns 0 if all bytes in the areas match, a positive number if the first unmatched byte in the first area is greater than the corresponding byte in the second area, or a negative number if the first unmatched byte in the second area is greater than the corresponding byte in the first area.
For more information on how to create an API library and integrate it with Visual FoxPro, see Chapter 28, Accessing the Visual FoxPro API, in the Programmer's Guide.