On Sun, 2 Apr 2006, Joerg Schilling wrote:
if (dp == ¬able) {
/* BEGIN CSTYLED */
printf("Manufacturer is unknown because of the orange forum
embargo.\n");
printf("As the orange forum likes to get money for recent
information,\n");
printf("it may be that this media does not use illegal manufacturer
coding.\n");
/* END CSTYLED */
}
C99 mandates concatenation of adjacent string literals into one, GCC
and Sun Studio both do so. So you could write the above as:
if (dp == ¬able) {
/* BEGIN CSTYLED */
printf("Manufacturer is unknown because of the"
"orange forum embargo.\n");
printf("As the orange forum likes to get money"
"for recent information,\n");
printf("it may be that this media does not use"
"illegal manufacturer coding.\n");
/* END CSTYLED */
}
Or you could do:
static const char orange_warn_str[] =
"Manufacturer is unknown because of the orange forum embargo.\n"
"As the orange forum likes to get money for recent information,\n"
<etc>;
.
.
.
if (dp == ¬able)
printf(orange_warn_str);
regards,
--
Paul Jakma [EMAIL PROTECTED] [EMAIL PROTECTED] Key ID: 64A2FF6A
Fortune:
The only "intuitive" interface is the nipple. After that, it's all learned.
(Bruce Ediger, [EMAIL PROTECTED], in comp.os.linux.misc, on X interfaces.)
_______________________________________________
opensolaris-discuss mailing list
[email protected]