Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public
Document Table of Contents

MBLen

NLS Function: Returns the number of characters in a multibyte-character string, including trailing blanks. This routine is only available for Windows.

Module

USE IFNLS

result = MBLen (string)

string

(Input) CHARACTER*(*). Is the string whose characters are to be counted. It can contain multibyte characters.

Results

The result type is INTEGER(4). The result is the number of characters in string.

MBLen recognizes multibyte-character sequences according to the multibyte codepage currently in use. It does not test for multibyte-character validity.