1 #include "csf.h"
2 #include "csfimpl.h"
3 
4 /* check if an attribute is available
5  * MattributeAvail search for the given id in the map.
6  *
7  * returns
8  *  0 if the attribute is not available,
9  *  nonzero if the attribute is available
10  *
11  * Merrno
12  * ILLHANDLE
13  */
MattributeAvail(MAP * m,CSF_ATTR_ID id)14 int MattributeAvail(
15 	MAP *m,    /* map handle */
16 	CSF_ATTR_ID id)  /* identification of attribute */
17 {
18 	ATTR_CNTRL_BLOCK b;
19 
20      	if (! CsfIsValidMap(m))
21 	 	return 0;
22 	return(CsfGetAttrBlock(m, id, &b) != 0);
23 }
24