1 #include "csf.h" 2 #include "csfimpl.h" 3 #include <string.h> 4 5 /* get the size of an attribute (LIBRARY_INTERNAL) 6 * returns 7 * 0 if the attribute is not available, 8 * or the nonzero size if the attribute is available. 9 */ CsfAttributeSize(MAP * m,CSF_ATTR_ID id)10size_t CsfAttributeSize( 11 MAP *m, /* map handle */ 12 CSF_ATTR_ID id) /* identification of attribute */ 13 { 14 ATTR_CNTRL_BLOCK b; 15 memset(&b, 0, sizeof(b)); 16 17 if (CsfGetAttrBlock(m, id, &b) != 0) 18 return b.attrs[CsfGetAttrIndex(id, &b)].attrSize; 19 return 0; 20 } 21