PxStrcmp()

Compare two strings.

APPLIES TO

1.0.0

SYNOPSIS
PxInt_t PxStrcmp(char const *s, char const *s2);
ARGUMENTS
s

First string to compare

s2

Second string to compare

RETURN VALUES
  • 0 if both strings are equal

  • 1 if s1 is lexicographically greater then s2

  • -1 if s2 is lexicographically greater then s1

DESCRIPTION

PxStrcmp compare two strings. It returns "0", if they are equal.

USAGE
#include "pxdef.h"

PxInt_t comp = PxStrcmp(str1, str2);