slapi_ch_strncmp()
slapi_ch_strncmp() compares substrings
within two strings.
- Syntax
#include "slapi-plugin.h" int slapi_ch_strncmp( const char *str1, const char *str2, size_t size);- Parameters
-
- str1
- The string that you want to search for a specified substring.
- str2
- The string that you want to search.
- size
- The number of characters to be searched.
- Returns
- Returns a value less than 0 if
str1<str2, equal to 0 ifstr1=str2, or greater than 0 ifstr1>str2.