next up previous 264
Next: astChrCase - Convert a string to upper or lower case
Up: AST Memory Management and Utility Functions
Previous: astCalloc - Allocate and initialise memory


astChr2Double - read a double value from a string

Description:
This function reads a double from the supplied null-terminated string, ignoring leading and trailing white space. AST__BAD is ereturned without error if the string is not a numerical value.
Synopsis:
double astChr2Double( const char $*$str )
Parameters:
str
Pointer to the string.
Returned Value:
astChr2Double()
The double value, or AST__BAD.
Notes:
  • A value of AST__BAD is returned if this function is invoked with the global error status set or if it should fail for any reason.


next up previous 264
Next: astChrCase - Convert a string to upper or lower case
Up: AST Memory Management and Utility Functions
Previous: astCalloc - Allocate and initialise memory

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

Copyright (C) 2009 Science \& Technology Facilities Council