Guardian Native C Library Calls Reference Manual (G06.28+, H06.04+)

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 native Guardian processes: $SYSTEM.ZDLLnnn.ZCRTLDLL
H-series OSS processes: /G/system/zdllnnn/zcrtldll
SYNOPSIS
#include <strings.h>
int bcmp(
const void *s1,
const void *s2,
size_t n);
PARAMETERS
s1 Is a pointer to the rst 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 rst 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 rst 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 dened in the XPG4 Version 2 specication.
126 Hewlett-Packard Company 527192-005