Allocate space that may be accessed from C and FORTRAN cnfCalloc
cnfRegp
) for use from both C and FORTRAN.
This means that the returned pointer may subsequently be converted into a FORTRAN pointer of type
F77_POINTER_TYPE (using cnfFptr
) and back into a C pointer (using cnfCptr
). The contents
of the space may therefore be accessed from both languages. As with calloc(), the allocated space is initialised to zero bytes.
The space should be freed using cnfFree
when no longer required.