Jens Rehsack wrote:
Correct. And if the strings are not modifiable? (I thought I provided an example which shows, that they neither are assumed being modifiable nor being modified).
no warning: const char *x = "abc"; warning: char *x = "abc"; maybe that's what you're after? You can use const in your structs as well. HTH Cedric.