Gets the first value of an attribute in an entry as a string.
#include "slapi-plugin.h" char *slapi_entry_attr_get_charptr(const Slapi_Entry* e, const char *type);
This function takes the following parameters:
Entry from which you want to get the string value.
Attribute type from which you want to get the value.
This function returns a copy of the first value in the attribute, or NULL if the entry does not contain the attribute.
When you are done working with this value, you should free it from memory by calling the slapi_ch_free() function.