NAME
t6size_attr - get the size of a particular attribute from the control structure.
SYNOPSIS
cc [ flags ... ] file ... -lt6
#include <tsix/t6attrs.h>
int t6size_attr(t6attr_id_t attr_type, const t6attr_t t6ctl)
DESCRIPTION
t6size_attr returns the size of an attribute indicated by
attr_type.
If the t6attr_t control structure t6ctl is a pointer, it returns either the size of a fixed-size attribute or the maximum size of a variable size attribute. If the attr_type is invalid, it returns 0 .
If the t6attr_t control structure t6ctl is not , it either returns the size of a fixed-size attribute or the actual size occupied by a variable size attribute in the control structure t6ctl. If the attr_type is invalid or not in the t6ctl, it returns 0 .
SEE ALSO
t6dup_attr(3N)
,
t6copy_attr(3N)