next up previous 252
Next: cnfCreat - Create a temporary C string and return a pointer to it
Up: CNF C Routine Descriptions
Previous: cnfCopyf - Copy one FORTRAN string to another FORTRAN string


cnfCptr - Convert a FORTRAN pointer to a C pointer

Description:
Given a FORTRAN pointer, stored in a variable of type F77_POINTER_TYPE, this function returns the equivalent C pointer. Note that this conversion is only performed if the C pointer has originally been registered (using cnfRegp) for use from both C and FORTRAN. All pointers to space allocated by cnfCalloc and cnfMalloc are automatically registered in this way.

Invocation:
cpointer = cnfCptr( fpointer )

Arguments:

F77_POINTER_TYPE fpointer (Given)
The FORTRAN pointer value.

Returned Value:

void *cnfCptr
The equivalent C pointer.

Notes:



next up previous 252
Next: cnfCreat - Create a temporary C string and return a pointer to it
Up: CNF C Routine Descriptions
Previous: cnfCopyf - Copy one FORTRAN string to another FORTRAN string

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