bcmp()

perform byte string comparison 

Function


SYNOPSIS

#include <string.h>

int bcmp(const void *s1, const void *s2, int n);


DESCRIPTION

The bcmp() function performs byte string comparison. bcmp() returns zero if first n bytes of strings s1 and s2 are identical, non-zero otherwise. If n is zero, bcmp() returns zero.


PARAMETERS

s1 

Points to the first string to be compared.

s2 

Points to the second string to be compared.

n 

Is the number of bytes to be compared.


RETURN VALUES

This function returns zero if the first n bytes of strings s1 and s2 are identical, otherwise non-zero is returned.


CONFORMANCE

4.4BSD.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

This function is deprecated. Use memcmp() instead.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
bcopy(), bzero(), ffs(), memcmp(), memcpy(), memmove(), memset()


PTC MKS Toolkit 10.4 Documentation Build 39.