Next: astStore - Store data in dynamically allocated memory
Up: AST Memory Management and Utility Functions
Previous: astRemoveLeadingBlanks - Remove any leading white space from a string
astSizeOf
-
Determine the size of a dynamically allocated region of memory
- Description:
- This function returns the size of a region of dynamically
allocated memory.
- Synopsis:
- size_t astSizeOf( const void
ptr )
- Parameters:
-
ptr
-
Pointer to dynamically allocated memory (or NULL if the size
of the allocated memory was zero).
- Returned Value:
-
astSizeOf()
-
The allocated size. This will be zero if a NULL pointer was
supplied (no error will result).
- Notes:
- A value of zero is returned if this function is invoked with
the global error status set, or if it fails for any reason.
Next: astStore - Store data in dynamically allocated memory
Up: AST Memory Management and Utility Functions
Previous: astRemoveLeadingBlanks - Remove any leading white space from a string
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