-qdollar

Category

Language element control

Pragma equivalent

#pragma options [no]dollar

Purpose

Allows the dollar-sign ($) symbol to be used in the names of identifiers.

When dollar is in effect, the dollar symbol $ in an identifier is treated as a base character.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-nodollar-.   
>>- -q--+-dollar---+-------------------------------------------><

Defaults

-qnodollar

Usage

If nodollar and the ucs language level are both in effect, the dollar symbol is treated as an extended character and translated into \u0024.

Predefined macros

None.

Examples

To compile myprogram.c so that $ is allowed in identifiers in the program, enter:

xlc myprogram.c -qdollar

Related information