gdal-1.11.0/frmts/pcraster/libcsf/gattrblk.c
CSF_FADDR CsfGetAttrBlock(
	MAP *m,     /* map handle */
	CSF_ATTR_ID id,   /* identification of the attribute */
	ATTR_CNTRL_BLOCK *b) /* write-only, attribute control block containing
	                      * the id information.
	                      */
{
	CSF_FADDR next;

	next = m->main.attrTable;
	while (next != 0 )
	{
		CsfReadAttrBlock(m, next, b);
		if (CsfGetAttrIndex(id, b) != NR_ATTR_IN_BLOCK)
			break;
		next = b->next;
	}
	return(next);
}
/* get the attribute control block (LIBRARY_INTERNAL)
 * GetAttrBlock searches for the attribute control block
 * that keeps the information for the given id.
 * returns
 * 0 if attribute is not found,
 * or if found, the file position of the attribute
 * control block.
 */
get the attribute control block (LIBRARY_INTERNAL)
GetAttrBlock searches for the attribute control block
that keeps the information for the given id.
returns
0 if attribute is not found,
or if found, the file position of the attribute
control block.
get the attribute control block ( LIBRARY_INTERNAL ) GetAttrBlock searches for the attribute control block that keeps the information for the given id . returns 0 if attribute is not found or if found the file position of the attribute control block .
CSF_FADDR CsfGetAttrBlock(
	MAP *m,     
	CSF_ATTR_ID id,   
	ATTR_CNTRL_BLOCK *b) 
{
	CSF_FADDR next;
	next = m->main.attrTable;
	while (next != 0 )
	{
		CsfReadAttrBlock(m, next, b);
		if (CsfGetAttrIndex(id, b) != NR_ATTR_IN_BLOCK)
			break;
		next = b->next;
	}
	return(next);
}
CSF_FADDR CsfGetAttrBlock ( MAP * m , CSF_ATTR_ID id , ATTR_CNTRL_BLOCK * b ) { CSF_FADDR next ; next = m -> main . attrTable ; while ( next != 0 ) { CsfReadAttrBlock ( m , next , b ) ; if ( CsfGetAttrIndex ( id , b ) != NR_ATTR_IN_BLOCK ) break ; next = b -> next ; } return ( next ) ; }
get the attribute control block (LIBRARY_INTERNAL)
 GetAttrBlock searches for the attribute control block
 that keeps the information for the given id.
get the attribute control block ( LIBRARY_INTERNAL ) GetAttrBlock searches for the attribute control block that keeps the information for the given id .
/* map handle */ /* identification of the attribute */ /* write-only, attribute control block containing
	                      * the id information.
	                      */