### dont_reuse_strings

Controls whether or not to store each string literal separately in the string pool.

##### Syntax

#pragma dont_reuse_strings on | off | reset

##### Targets

All platforms.

##### Remarks

If you enable this pragma, the compiler stores each string literal separately. Otherwise, the compiler stores only one copy of identical string literals. This pragma helps you save memory if your program contains a lot of identical string literals that you do not modify.

For example, take this code segment:

char *str1="Hello";
char *str2="Hello"
*str2 = 'Y';

If you enable this pragma, str1 is "Hello", and str2 is "Yello". Otherwise, both str1 and str2 are "Yello".

This pragma corresponds to the Reuse Strings setting . To check this setting, use __option (dont_reuse_strings), described in Checking Settings. The default setting is off.