fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

ADDRESS AND LENGTH

Syntax:

!% ADDRESS AND LENGTH [:] [:] <symbol> [ , <symbol> ...]

Function:

Specifies that the named sub-program arguments are passed as a Unix strings. The call site contains two separate tokens, one of the address of the string, and one for the length. fpt uses this information in the argument consistency check (please see CHECK ARGUMENTS). The alternative protocol specifications for arguments are:

!% VALUE

!% REFERENCE

!% DESCRIPTOR

!% ADDRESS AND LENGTH

Names which contain exotic characters such as '%', ':' or '#' (which are all legal on some systems) must be written as quoted strings.

The %ADDRESS AND LENGTH command must be written in code within the scope of declaration of the variable.

Where to Use this Command

Operating system command line No
Configuration file, config.fsp No
Specification (fsp) files, *.fsp No
Interactively, to FPT> prompt No
Interactive command files No
Embedded in the Fortran code Yes

Default

By reference for numeric arguments, and as specified by the command PASS STRING ARGUMENTS for arguments of type character.

Examples

SUBROUTINE REPVAL(NAMEA,VALA) REAL*4 VALA CHARACTER*16 NAMEA !% ADDRESS AND LENGTH :: NAMEA

See Also:

CHECK ARGUMENTS

PASS STRING ARGUMENTS

Copyright ©1995 to 2024 Software Validation Ltd. All rights reserved.