- ←Prev
- AST
A Library for Handling
World Coordinate Systems
in Astronomy - Next→
- TOC ↑
Description:
This function takes a pointer to a region of memory and
tests if the memory has previously been dynamically allocated using other
functions from this module. It does this by checking for the presence of a "
magic"
number in the header which precedes the allocated memory. If the magic
number is not present (or the pointer is invalid for any other reason), zero is
returned. Otherwise 1 is returned.
Synopsis
int astIsDynamic( const void
ptr )
Parameters:
Returned Value
astIsDynamic()
Non-zero if
the memory was allocated dynamically. Zero is returned if the supplied pointer is NULL.
Notes:
Copyright (C) 2021 East Asian Observatory
- ←Prev
- AST
A Library for Handling
World
Coordinate Systems
in Astronomy - Next→
- TOC ↑