attrsize.c

来自「支持各种栅格图像和矢量图像读取的库」· C语言 代码 · 共 22 行

C
22
字号
/* * attrsize.c */#include "csf.h"#include "csfimpl.h"/* get the size of an attribute (LIBRARY_INTERNAL) * returns * 0 if the attribute is not available, * or the nonzero size if the attribute is available. */size_t CsfAttributeSize(	 MAP   *m,    /* map handle */	 CSF_ATTR_ID id)    /* identification of attribute */{	ATTR_CNTRL_BLOCK b;	if (CsfGetAttrBlock(m, id, &b) != 0)		return b.attrs[CsfGetAttrIndex(id, &b)].attrSize;        return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?