slapi_ch_strcmp()
slapi_ch_strcmp() compares two string
parameters.
- Syntax
#include "slapi-plugin.h" int slapi_ch_strcmp( const char *str1, const char *str2);- Parameters
-
- str1
- The string that you want to compare.
- str2
- The string that you want the
str1to be compared with.
- Returns
- Returns a value less than 0 if
str1<str2, equal to 0 ifstr1=str2, or greater than 0 ifstr1>str2.