The t6size_attr(3NSL) return value contains the size in bytes of the specified attribute if the call was successful and -1 otherwise. This example gets the size of the clearance attribute in sendattrs.
#include <tsix/t6attrs.h>
#include <tsol/label.h>
main()
{
size_t size;
t6attr_t sendattrs;
size = t6size_attr(T6_CLEARANCE, sendattrs);
printf("Clearance size = %d\n", size);
}
The printf(1)statement prints the following fixed size for clearances:
Clearance size = 36 |