next up previous 264
Next: astOffset - Calculate an offset along a geodesic curve
Up: AST Function Descriptions
Previous: astNullRegion - Create a NullRegion


astOK - Test whether AST functions have been successful

Description:
This macro returns a boolean value (0 or 1) to indicate if preceding AST functions have completed successfully (i.e. without setting the AST error status). If the error status is set to an error value, a value of zero is returned, otherwise the result is one.
Synopsis:
int astOK
Returned Value:
astOK
One if the AST error status is OK, otherwise zero.
Notes:
  • If the AST error status is set to an error value (after an error), most AST functions will not execute and will simply return without action. To clear the error status and restore normal behaviour, use astClearStatus.


next up previous 264
Next: astOffset - Calculate an offset along a geodesic curve
Up: AST Function Descriptions
Previous: astNullRegion - Create a NullRegion

AST A Library for Handling World Coordinate Systems in Astronomy
Starlink User Note 211
R.F. Warren-Smith & D.S. Berry
7th December 2012
E-mail:starlink@jiscmail.ac.uk

Copyright (C) 2012 Science \& Technology Facilities Council