Next: cnfFreef - Free a FORTRAN string
Up: CNF C Routine Descriptions
Previous: cnfFptr - Convert a C pointer to a FORTRAN pointer
cnfFree
- Free allocated space
- Description:
- Free space allocated by a call to
cnfCalloc,
cnfCreat,
cnfCreib,
cnfCreim
or
cnfMalloc.
- Invocation:
- cnfFree( pointer )
- Arguments:
-
-
void *pointer (Given)
-
A pointer to the space to be freed.
- Notes:
- This function is not simply equivalent to the C free()
function, since if the pointer has been registered (using
cnfRegp)
for use by both C and FORTRAN, then it will be
unregistered before the space is freed. All pointers to space
allocated by
cnfCalloc
and
cnfMalloc
are automatically
registered in this way, so
cnfFree
should always be used to
free them.
- It is also safe to free unregistered pointers with this
function.
Next: cnfFreef - Free a FORTRAN string
Up: CNF C Routine Descriptions
Previous: cnfFptr - Convert a C pointer to a FORTRAN pointer
CNF and F77 Mixed Language Programming -- FORTRAN and C
Starlink User Note 209
P.M. Allan
A.J. Chipperfield
R.F. Warren-Smith
19 January 2000
E-mail:ussc@star.rl.ac.uk