tanner@ki4pv.UUCP (01/15/87)
/* the following little programme raises a few issues about
* the pre-processor, doesn't it?
* 14-Jan-87 [ki4pv!tanner]
*/
/* the START_CMT definition below confuses the pre-processor
* horribly. the solution, until the pre-processor gets fixed,
* is to use "\052" instead of the '*' character there.
*/
#define START_CMT " /* "
#define ENDOF_CMT " */ "
char
srtc[] = START_CMT,
endc[] = ENDOF_CMT;
main()
{
printf("comments start with %s and end with %s\n", srtc, endc);
exit(0);
}
--
<std dsclm, copies upon request> Tanner Andrews
gwyn@brl-smoke.ARPA (Doug Gwyn ) (01/17/87)
In article <6930@ki4pv.UUCP> tanner@ki4pv.UUCP (Tanner Andrews) writes: >#define START_CMT " /* " None of the C implementations I am aware of has a problem with this. It might be of interest to know what one does.