Next: CHARACTER_RETURN_VALUE - Declare argument(s) that will be the return value of a FORTRAN CHARACTER FUNCTION
Up: Full Description of F77 Macros
Previous: CHARACTER_ARRAY_ARG - Pass a CHARACTER array argument to a FORTRAN routine
CHARACTER_RETURN_ARG
- Pass argument(s) that will be the return value of a FORTRAN CHARACTER
FUNCTION
- Description:
- Pass the function return value argument(s) to a FORTRAN CHARACTER
FUNCTION. There is no corresponding dummy argument in the FORTRAN
FUNCTION, but the compiler generates an extra argument specifying
the address and possibly another one, specifying the length of the
value to be returned.
The argument should be the address of a FORTRAN CHARACTER variable.
- Invocation:
- CHARACTER_RETURN_ARG(arg)
- Arguments:
-
-
arg
-
The hidden dummy argument to be declared.
- Examples:
-
- CHARACTER_RETURN_ARG(x)
- will expand as follows:
All Unix: |
x ,int x_length |
VAX/VMS: |
x_arg |
Next: CHARACTER_RETURN_VALUE - Declare argument(s) that will be the return value of a FORTRAN CHARACTER FUNCTION
Up: Full Description of F77 Macros
Previous: CHARACTER_ARRAY_ARG - Pass a CHARACTER array argument to a FORTRAN routine
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