Re: Problem with the string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



kanishk rastogi writes:
 > hi all,
 > when we compile our c programs the strings which we use get defined in
 > read only memory.
 > how can i ask the gcc compiler to declare them in read-write section.

You just gotta declare them right.  Like this:

char s[] = "This is a string!";

Andrew.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux