next up previous
Next: astOffset - Calculate an offset along a geodesic curve
Up: AST Function Descriptions
Previous: astNorm - Normalise a set of Frame coordinates

   
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
Next: astOffset - Calculate an offset along a geodesic curve
Up: AST Function Descriptions
Previous: astNorm - Normalise a set of Frame coordinates

AST A Library for Handling World Coordinate Systems in Astronomy
Starlink User Note 211
R.F. Warren-Smith & D.S. Berry
30th April 2003
E-mail:ussc@star.rl.ac.uk

Copyright (C) 2003 Central Laboratory of the Research Councils