Returns the base type of an attribute.
#include "slapi-plugin.h" char *slapi_attr_basetype( char *type, char *buf, size_t bufsiz );
This function takes the following parameters:
Attribute type from which you wish to get the base type.
Buffer to hold the returned base type.
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.
This function returns the base type of an attribute (for example, if given cn;lang-jp, returns cn).
You should free the returned base type when you are finished by calling slapi_ch_free().