インテル® Fortran コンパイラー XE 13.1 ユーザー・リファレンス・ガイド
Inquiry Intrinsic Function (Generic): Returns the length of a character expression.
result = LEN (string [, kind])
string |
(Input) Must be of type character; it can be scalar or array valued. (It can be an array of strings.) |
kind |
(Input; optional) Must be a scalar integer initialization expression. |
The result is a scalar of type integer. If kind is present, the kind parameter of the result is that specified by kind; otherwise, the kind parameter of the result is that of default integer. If the processor cannot represent the result value in the kind of the result, the result is undefined.
The result has a value equal to the number of characters in string(if it is scalar) or in an element of string(if it is array valued).