Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6ISafeString::strncmp ( const P6CHAR pStr1,
const P6CHAR pStr2,
P6SIZE  length,
P6INT32 pRetval 
)
pure virtual

Lexographically compares at most the first length character of the two specified strings.

The comparison stops as soon as a NULL character is found in either of the two strings before reaching length characters.

Parameters
pStr1[ in ] A pointer to the first NULL terminated string to compare.
pStr2[ in ] A pointer to the second NULL terminated string to compare.
length[ in ] The maximum number of charaters to compare.
pRetval[ out ] A pointer to a P6R::P6INT32 in which will be placed the result of the comparison indicating the relationship between the strings.
Returns
SuccessP6R::eOk 
FailureP6R::eInvalidArgs1 or s2 or pRetval is NULL