I use to define multi-line stuff, something like a help message, like this:
#define HELP_MSG "blabla\r\n" \
"Some other line"
Is there a way that I can avoid putting “\r\n” here, since I already have it defined in multiple line.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No,
\is merely used as a line continuation marker. If you need a line break, you need to include it explicitly in the string, as you’re doing.