PRB: \" Sequence Must Be Used to Define Strings with /D Switch

ID Number: Q66213

5.10 6.00 6.00a 6.00ax | 5.10 6.00 6.00a

MS-DOS | OS/2

docerr

Summary:

The /D compiler switch is used to define a constant value to the

preprocessor. It is equivalent to using a #define statement in the

source code. The C version 6.0 "Microsoft C Reference" manual gives

the syntax as follows:

/Did[=[value]]

"Value" can be a number, character, or string constant such as "cat".

In order to define a string constant, the \" escape sequence must be

used. This requirement is undocumented. Please see the example shown

below, where CAT is defined as "dog":

cl /DCAT=\"dog\" s.c

Additional reference words: 6.00 6.00a 6.00ax