ILE C/C++ Programmer's Guide


Specifying Access to String Literals

To place strings into read/write memory, you must place the #pragma strings directive before any C or C++ code in a file.

If you use the READONLY option, you specify that the compiler may place strings into read-only memory.

If you use the WRITEABLE option, you specify that the compiler must place strings into writeable memory. Strings are writeable by default.

C language onlyC strings are read/write by default.

C++ language onlyC++ strings are read only by default.

Note:
This pragma will override the *STRDONLY option on the Create Module or Create Bound Program commands.

For the syntax of the #pragma strings directive, see the WebSphere Development Studio: ILE C/C++ Compiler Reference.


[ Top of Page | Previous Page | Next Page | Table of Contents ]