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

ID 767251
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

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.