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

bcmp(3) Guardian Native C Library Calls Reference Manual
NAME
bcmp - Compares two areas of memory
LIBRARY
G-series native Guardian processes: $SYSTEM.SYSnn.ZI18NSRL
G-series native OSS processes: /G/system/sysnn/zi18nsrl
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcrtldll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycrtldll
SYNOPSIS
#include <strings.h>
int bcmp(
const void *s1,
const void *s2,
size_t n);
PARAMETERS
s1 Is a pointer to the first area to be compared.
s2 Is a pointer to the second area to be compared.
n Is the number of bytes to compare.
DESCRIPTION
The bcmp( ) function compares the first n bytes of the areas pointed to by the s1 and s2 parame-
ters.
NOTES
The bcmp( ) function can be called by native processes only.
RETURN VALUES
If the first n bytes of the areas pointed to by s1 and s2 are identical or if the value of n is 0 (zero),
the bcmp() function returns 0 (zero). Otherwise, it returns a nonzero value.
ERRORS
None.
RELATED INFORMATION
Functions: bcopy(3), bzero(3), memcmp(3).
STANDARDS CONFORMANCE
The bcmp( ) function is defined in the XPG4 Version 2 specification.
154 Hewlett-Packard Company 527192-018