slapi_str2filter()

slapi_str2filter() converts a string description of a search filter into a filter of the Slapi_Filter type.

When you are done working with this filter, free the Slapi_Filter structure by calling slapi_filter_free().

Syntax
#include "slapi-plugin.h"
Slapi_Filter *slapi_str2filter( char *str );
Parameters
str
A string description of a search filter.
Returns
The address of the Slapi_Filter structure that represents the search filter is returned, or a NULL is returned if the string cannot be converted (for example, if an empty string is specified or if the filter syntax is incorrect).