This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Newline in constant string
- To: gcc at gcc dot gnu dot org
- Subject: Newline in constant string
- From: "Dave Raggett" <dave_raggett at hotmail dot com>
- Date: Fri, 29 Dec 2000 03:11:11 -0000
When I wrote some codes like this
char *MyName="I am Dave Ra
ggett";
gcc will treat the string as "I am Dave Ra\nggett".so I think gcc should
give some
warning in such case. e.g. "missing '\' in your constant string".
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.