slapi_entry_attr_find()
slapi_entry_attr_find() determines whether
an entry has a specified attribute. If it does, this function returns
that attribute.
- Syntax
#include "slapi-plugin.h" int slapi_entry_attr_find( Slapi_Entry *e, char *type,Slapi_Attr **attr );- Parameters
-
- e
- An entry that you want to check.
- type
- Indicates the name of the attribute that you want to check.
- attr
- A pointer to the attribute (assuming that the attribute is in the entry).
- Returns
- If the entry contains the specified attribute 0 is returned, or -1 is returned if it does not.