PxBcmp()

Compare two byte areas.

APPLIES TO

8.2.0

SYNOPSIS
PxInt_t PxBcmp(PxUChar_t const *s, PxUChar_t const *d, PxSize_t len);
ARGUMENTS
s

Address of first byte areas to compare

d

Address of second byte areas to compare

len

Number of bytes to be compared

RETURN VALUES
  • 0 if the compare byte areas are equal

  • Nonzero value if the compare byte areas are not equal

DESCRIPTION

PxBcmp compares the byte areas of length len starting at s or d, respectively. It returns 0, if they are equal, and nonzero otherwise.

USAGE
#include "pxdef.h"

PxInt_t comp = PxBcmp(str1, str2, length);