From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Lance Taylor To: Ian.Dall@dsto.defence.gov.au Cc: devans@cygnus.com, gas2@cygnus.com Subject: Re: ANSI strings, comment style, ... Date: Tue, 04 Nov 1997 16:43:00 -0000 Message-id: <199711050043.TAA27667@subrogation.cygnus.com> References: <199711050040.LAA07511@hfrd015.dsto.defence.gov.au> X-SW-Source: 1997/msg00024.html Date: Wed, 5 Nov 1997 11:10:31 +1030 From: Ian Dall To be honest I was not sure this was new in ANSI. We are not talking about cpp "#" and "##" operations. What I think we are talking about is writing: printf("A very long string. Warning: unacceptable argument to %s instruction", insn); as printf("A very long string." "Warning: unacceptable argument to %s instruction\n", insn); Yes, that sort of string concatenation is new in ANSI. If this is not acceptable, what is the preferred way to do this? I'd sooner not make it two printf's and I think printf("A very long string.\ Warning: unacceptable argument to %s instruction\n", insn); Is almost as ugly as just letting the line wrap. I say, let the line wrap. If it really bugs you, initialize a variable and print that. Note that you need a space between the `printf' and the open parenthesis in your example. In your first example, you can, and should, put ``insn'' on the next line. Ian