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:

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

Description:

Function compares a two memory blocks.

If functions for basic operations on memory are inactive for alternative C library by setting ST_USE_STRING_CLIB for 1, it will be created stMemCmp macro that will call memcmp function from 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