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

ID 767251
Date 11/07/2023
Public

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

Document Table of Contents

MBLen_Trim

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

Module

USE IFNLS

result = MBLen_Trim (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 minus any trailing blanks (blanks are bytes containing character 32 (hex 20) in the ASCII collating sequence).

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

See Also