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

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.