next up previous 252
Next: DECLARE_CHARACTER - Declare a CHARACTER variable
Up: Full Description of F77 Macros
Previous: CHARACTER_RETURN_ARG - Pass argument(s) that will be the return value of a FORTRAN CHARACTER FUNCTION


CHARACTER_RETURN_VALUE - Declare argument(s) that will be the return value of a FORTRAN CHARACTER FUNCTION

Description:
Declare the C function argument(s) to return the value of a FORTRAN CHARACTER FUNCTION. There is no corresponding actual argument in the FORTRAN call but the compiler generates an extra argument specifying the address and possibly another one, specifying the length of the value to be returned.

Invocation:
CHARACTER_RETURN_VALUE(arg)

Arguments:

arg
The hidden dummy argument to be declared.

Examples:

CHARACTER_RETURN_VALUE(x)
will expand as follows:

All Unix: char *x ,int x_length
VAX/VMS: struct dsc$descriptor_s *x_arg




next up previous 252
Next: DECLARE_CHARACTER - Declare a CHARACTER variable
Up: Full Description of F77 Macros
Previous: CHARACTER_RETURN_ARG - Pass argument(s) that will be the return value of a FORTRAN CHARACTER FUNCTION

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