119. Internal write to character variable too small to hold output causes run-time error.#

topic: Character variables

Note

This tip is a draft1.

A character variable can be assigned to a character variable with smaller or larger LEN, resulting in padding with blanks or truncation, but an internal write to a character variable that is too small to hold the output will cause a run-time error.



1

From the perspective of FortranTip Browser, “draft” means that it hasn’t been edited for formatting, hasn’t had corresponding Fortran programs added, the text content hasn’t been enhanced, etc. Draft texts are extracted from the corresponding Tweet using the Twitter API.