Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

memcmp64(3) Guardian Native C Library Calls Reference Manual
NAME
memcmp64 - Compares characters in memory
LIBRARY
H-series and J-series native Guardian processes: implicit libraries
H-series and J-series OSS processes: implicit libraries
SYNOPSIS
#include <string.h>
int memcmp64(
const void _ptr64 *s1,
const void _ptr64 *s2,
unsigned long long n);
PARAMETERS
s1 Points to the location of a destination string.
s2 Points to the location of a source string.
n Species the number of bytes to search.
DESCRIPTION
The memcmp64() function operates on strings in memory areas. A memory area is a group of
contiguous bytes bound by a count and not terminated by a null character.
The memcmp64() function compares the first n bytes, which are converted to unsigned char,of
the string pointed to by the s1 parameter with the first n bytes (also interpreted as unsigned char)
of the string pointed to by the s2 parameter.
NOTES
The memcmp64() function uses native byte comparison, which might have signed values on
some machines.
RETURN VALUES
The memcmp64() function returns one of the following values:
Less than 0 When s1 is less than s2
Equal to 0 When s1 is equal to s2
Greater than 0 When s1 is greater than s2
RELATED INFORMATION
Functions: memcpy64(3), memchr64(3), memmove64(3), memset64(3), strcat64(3).
4100 Hewlett-Packard Company 527192-018