19.2. slapi_attr_basetype()
This function returns the base type of an attribute (for example, if given cn;lang-jp, returns cn).
#include "slapi-plugin.h" char *slapi_attr_basetype( char *type, char *buf, size_t bufsiz );
This function takes the following parameters:
| type | Attribute type from which you want to get the base type. |
| buf | Buffer to hold the returned base type. |
| bufsiz | Size of the buffer. |
This function returns NULL if the base type fits in the buffer. If the base type is longer than the buffer, the function allocates memory for the base type and returns a pointer to it.
You should free the returned base type when done by calling slapi_attr_basetype().

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.