Get an attribute value for an Object
If possible, the attribute value is converted to the type you request. If conversion is not possible, an error will result.
"
RefCount =
%d∖n"
,
astGetI( z, "
RefCount"
) ); "
z"
as
an int. "
Title"
); "
axis"
. Attribute names are not case sensitive and may be surrounded by white space.
An appropriate "
null"
value will be returned if this function is invoked with the AST
error status set, or if it should fail for any reason. This null value is zero for
numeric values and NULL for pointer values.
The pointer returned by astGetC is guaranteed to remain valid and the string to which it points will not be over-written for a total of 50 successive invocations of this function. After this, the memory containing the string may be re-used, so a copy of the string should be made if it is needed for longer than this.