Next: astGrow - Allocate memory for an adjustable array
Up: AST Memory Management and Utility Functions
Previous: astFree - Free previously allocated memory
astFreeDouble
-
Free previously double allocated memory
- Description:
- This function frees memory that has previouly been dynamically
allocated using one of the AST memory function. It assumes that
the supplied pointer is a pointer to an array of pointers. Each
of these pointers is first freed, and then the supplied pointer
is freed.
- Synopsis:
- void
astFreeDouble( void
ptr )
- Parameters:
-
ptr
-
Pointer to previously allocated memory. An error will result
if the memory has not previously been allocated by another
function in this module. However, a NULL pointer value is
accepted (without error) as indicating that no memory has yet
been allocated, so that no action is required.
- Returned Value:
-
astFreeDouble()
-
Always returns a NULL pointer.
Next: astGrow - Allocate memory for an adjustable array
Up: AST Memory Management and Utility Functions
Previous: astFree - Free previously allocated 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