mbcs, dbcs

Applies to C Applies to C++

Purpose

Use the -qmbcs option if your program contains multibyte characters. The -qmbcs option is equivalent to -qdbcs.

Syntax


Syntax Diagram

See also #pragma options.

Notes

Multibyte characters are used in certain languages such as Chinese, Japanese, and Korean.

Multibyte characters are also permitted in comments, if you specify the -qmbcs or -qdbcs compiler option.

If a source file contains multibyte character literals and the default -qnombcs or -qnodbcs compiler option is in effect, the compiler will treat all literals as single-byte literals.

Example

To compile myprogram.c if it contains multibyte characters, enter:

xlc myprogram.c -qmbcs

Related References

Compiler Command Line Options
#pragma options IBM Copyright 2003