FPT and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Reference 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 commands:

% PASS STRING ARGUMENTS. . . for arguments of type character.

Example:

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

See also:

CHECK ARGUMENTS

PASS STRING ARGUMENTS


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