stMemCmp Function
Declaration:
int stMemCmp(
  const PVOID s1,
  const PVOID s2,
  SIZE n
);
Parameters:
s1

Address of the first memory block.

s2

Address of the second memory block.

n

Number of bytes to compare.

Return value:

The function returns a negative value if s1 is less than s2, a positive value if s1 is greater than s2, or zero (0) if both are equal.

Description:

This function compares two memory blocks.

If functions for basic memory operations are inactive in the alternative C library (by setting ST_USE_MEMORY_CLIB to 1), a macro named stMemCmp will be created that calls the memcmp function from the standard C library.

Version:1.0
Header file:ST_CLIB.h (include ST_API.h)
See also: PVOID, SIZE, ST_USE_MEMORY_CLIB
SpaceShadow documentation