PxStrncmp()
Compare two strings with fixed length.
- APPLIES TO
-
8.2.0
- SYNOPSIS
-
PxInt_t PxStrncmp(char const *s, char const *s2, PxSize_t n);
- ARGUMENTS
|
|
|
|
|
- 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
-
PxStrncmp compare two strings with fixed length. It returns "0", if they are equal.
- USAGE
-
#include "pxdef.h" PxInt_t comp = PxStrncmp(str1, str2, len);