next up previous 252
Next: cnfFree - Free allocated space
Up: CNF C Routine Descriptions
Previous: cnfExprtap - Export a C array of pointers to char, to a FORTRAN CHARACTER array


cnfFptr - Convert a C pointer to a FORTRAN pointer

Description:
Given a C pointer, this function returns the equivalent FORTRAN pointer of type F77_POINTER_TYPE. 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:
fpointer = cnfFptr( cpointer )

Arguments:

void *cpointer (Given)
The C pointer.

Returned Value:

F77_POINTER_TYPE cnfCptr
The equivalent FORTRAN pointer value.

Notes:



next up previous 252
Next: cnfFree - Free allocated space
Up: CNF C Routine Descriptions
Previous: cnfExprtap - Export a C array of pointers to char, to a FORTRAN CHARACTER array

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