astHasAttributeastHasAttribute - Test if an Object has a named attribute

Description:
This function returns a boolean result (0 or 1) to indicate whether the supplied ObjectObject has an attribute with the supplied name.
Synopsis:
int astHasAttribute( AstObject $*$this, const char $*$attrib )
Parameters:
this
Pointer to the first Object.
attrib
Pointer to a string holding the name of the attribute to be tested.
Class Applicability:
Object
This function applies to all Objects.
Returned Value:
astHasAttribute()
One if the Object has the named attribute, otherwise zero.
Notes:
  • A value of zero will be returned if this function is invoked with the AST error status set, or if it should fail for any reason.