gdal-1.11.0/frmts/pcraster/libcsf/gattrblk.c
CSF_FADDR CsfGetAttrPosSize(
	MAP *m,     /* map handle */
	CSF_ATTR_ID id,   /* identification of the attribute */
	size_t *size) /* write-only the size of the attribute */
{
	ATTR_CNTRL_BLOCK b;
	int i;

	if (CsfGetAttrBlock(m,id, &b) == 0)
		return 0;

	i = CsfGetAttrIndex(id, &b);
	*size =	b.attrs[i].attrSize;
	return b.attrs[i].attrOffset;
}
/* get the attribute position and size (LIBRARY_INTERNAL)
 * CsfGetAttrPosSize searches the attribute control block list
 * that keeps the information for the given id.
 * returns
 * 0 if attribute is not found,
 * or if found, the file position of the attribute.
 */
get the attribute position and size (LIBRARY_INTERNAL)
CsfGetAttrPosSize searches the attribute control block list
that keeps the information for the given id.
returns
0 if attribute is not found,
or if found, the file position of the attribute.
get the attribute position and size ( LIBRARY_INTERNAL ) CsfGetAttrPosSize searches the attribute control block list that keeps the information for the given id . returns 0 if attribute is not found or if found the file position of the attribute .
CSF_FADDR CsfGetAttrPosSize(
	MAP *m,     
	CSF_ATTR_ID id,   
	size_t *size) 
{
	ATTR_CNTRL_BLOCK b;
	int i;
	if (CsfGetAttrBlock(m,id, &b) == 0)
		return 0;
	i = CsfGetAttrIndex(id, &b);
	*size =	b.attrs[i].attrSize;
	return b.attrs[i].attrOffset;
}
CSF_FADDR CsfGetAttrPosSize ( MAP * m , CSF_ATTR_ID id , size_t * size ) { ATTR_CNTRL_BLOCK b ; int i ; if ( CsfGetAttrBlock ( m , id , & b ) == 0 ) return 0 ; i = CsfGetAttrIndex ( id , & b ) ; * size = b . attrs [ i ] . attrSize ; return b . attrs [ i ] . attrOffset ; }
get the attribute position and size (LIBRARY_INTERNAL)
 CsfGetAttrPosSize searches the attribute control block list
 that keeps the information for the given id.
get the attribute position and size ( LIBRARY_INTERNAL ) CsfGetAttrPosSize searches the attribute control block list that keeps the information for the given id .
/* map handle */ /* identification of the attribute */ /* write-only the size of the attribute */