1 #include "csf.h"
2 #include "csfimpl.h"
3 
4 /* search attribute index in block (LIBRARY_INTERNAL)
5  * returns index in block where id is found, NR_ATTR_IN_BLOCK if not found
6  */
CsfGetAttrIndex(CSF_ATTR_ID id,const ATTR_CNTRL_BLOCK * b)7 int CsfGetAttrIndex(
8 	CSF_ATTR_ID id,  /* id to be found */
9 	const ATTR_CNTRL_BLOCK *b) /* block to inspect */
10 {
11 	int i = 0;
12 
13 	while(i < NR_ATTR_IN_BLOCK)
14 	{
15 		if (b->attrs[i].attrId == id)
16 			break;
17 		i++;
18 	}
19 	return(i);
20 }
21