fpt and WinFPT Reference Manual - Command-line Commands

| SimCon Home | Ref Manual Home |

COUNT TRAILING WHITE SPACE IN UNDELIMITED STRINGS

Syntax:

[DO NOT] COUNT TRAILING [WHITE] SPACE[S] IN [UNDELIMITED] STRINGS

Function:

This command determines the way in which fpt interprets a string which continues from one line to the next, so that no string delimiter is written at the end of the first line. Compilers differ in their treatment of this situation. Some always pad undelimited strings with spaces up to the end of the code line (normally column 72). Some compilers count the number of space or tab characters actually written in the input file, and use this number to determine the string length. Some simply issue an error message.

In Fortran 90 free format, fpt uses Fortran 90 continuation characters to link strings split between lines. When writing in fixed format, wherever possible, fpt writes the strings in the output files with delimiters before the line ends. Strings in executable code are linked across lines by string catenation // operators. Strings in format specifications are linked by commas.

Where to Use this Command

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

Default

By default, strings are padded with spaces to the end of the code line (Note that defaults may be changed in the configuration file).

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