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

ID 767251
Date 3/22/2024
Public

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

Document Table of Contents

MBCharLen

NLS Function: Returns the length, in bytes, of the first character in a multibyte-character string. This routine is only available for Windows.

Module

USE IFNLS

result = MBCharLen (string)

string

(Input) Character*(*). Is a string containing the character whose length is to be determined. It can contain multibyte characters.

Results

The result type is INTEGER(4). The result is the number of bytes in the first character contained in string. The function returns 0 if string has no characters (is length 0).

MBCharLen does not test for multibyte character validity.