Guardian Native C Library Calls Reference Manual (G06.28+, H06.05+)
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 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.
1−30 Hewlett-Packard Company 527192-007