Logo

Programming-Idioms

History of Idiom 214 > diff from v7 to v8

Edit summary for version 8 by cjcoats:
New Fortran implementation by user [cjcoats]

Version 7

2019-11-04, 23:26:58

Version 8

2019-11-05, 17:58:58

Idiom #214 Pad string on the right

Append extra character c at the end of string s to make sure its length is at least m.
The length is the number of characters, not the number of bytes.

Idiom #214 Pad string on the right

Append extra character c at the end of string s to make sure its length is at least m.
The length is the number of characters, not the number of bytes.

Imports
That's automatically the way strings are handled, as specified by the Fortran language standard.
Code
CHARACTER(N):  FOO