James wrote:
> -> printf ("Hello","world","\n","%d%d%d", 2, 0, 35);
> -
> -This isn't a legitimate printf() call. The format string has to be a
> -single argument, e.g.
>
> oops, i meant
> printf ("Hello ""World ""\n"); /* No ,'s between */
>
> so that if you have a huge printf() line, you can split it up over lines:
>
> printf ("This is a really really long line that needs to wrap"
> " in order to look nice");
>
> (that works, i just tried it)
Yep, but this has nothing to do with functions which take a variable
number of parameters. Adjacent string literals are concatenated into a
single string literal by the compiler.
--
Glynn Clements <[EMAIL PROTECTED]>