19.5. slapi_attr_flag_is_set()
This function determines if certain flags are set for a particular attribute. These flags can identify an attribute as a single-valued attribute, an operational attribute, or as a read-only attribute.
#include "slapi-plugin.h"int slapi_attr_flag_is_set( const Slapi_Attr *attr, unsigned long flag );
This function takes the following parameters:
| attr | Attribute that you want to check. |
| flag | Flag to check in the attribute. |
flag argument can be one of the following:
SLAPI_ATTR_FLAG_SINGLE | Flag that determines if the attribute is single-valued. |
SLAPI_ATTR_FLAG_OPATTR | Flag that determines if the attribute is an operational attribute. |
SLAPI_ATTR_FLAG_READONLY | Flag that determines if the attribute is read-only. |
This function returns one of the following values:
- 1 if the specified flag is set.
- 0 if the specified flag is not set.

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.