インテル® Fortran コンパイラー 14.0 ユーザー・リファレンス・ガイド
NLS Function: Converts a Unicode string to a multibyte-character string from the current codepage.
result = MBConvertUnicodeToMB (unicodestr,mbstr[,flags])
The result type is INTEGER(4). If no error occurs, returns the number of bytes written to mbstr (bytes are counted, not characters), or the number of bytes required to hold the output string if mbstr has zero length. If mbstr is longer than the translation, it is blank-padded. If mbstr is zero length, the function returns the number of bytes required to hold the translation and nothing is written to mbstr.
If an error occurs, one of the following negative values is returned:
NLS$ErrorInsufficientBuffer - The mbstr argument is too small, but not zero length so that the needed number of bytes is returned.
NLS$ErrorInvalidFlags - The flags argument has an illegal value.