In article <p05100304b8aca0caa3ca@[192.168.254.205]>,
Rich Morin <[EMAIL PROTECTED]> wrote:
>At 5:27 PM -0800 3/6/02, Yitzchak Scott-Thoennes wrote:
>>>    "The format string is reused as often as necessary
>>>     to satisfy the arguments."
>>
>>Where did you get that?  Not true for Perl or C.
>
>Apparently, when I did a "man printf", I got the one in FreeBSD's Section 1:
>>       The format string is reused as often as necessary to satisfy the
>>       arguments.  Any extra format specifications are evaluated with zero or
>>       the null string.

Thats funky.

POSIX (IEEE 1003.1-2001) says:
If the format is exhausted while arguments remain, the excess
arguments shall be evaluated but are otherwise ignored.

And C99 (ISO 9899-1999 section 7.19.6.1) says:
If the format is exhausted while arguments remain, the excess
arguments are evaluated (as always) but are otherwise ignored.

Does it in fact reuse the format on your system?

>I also think Fortran FORMAT statements acted this way, but it's been
>far too long for me to remember for sure...  In any case, it seems
>that it isn't a problem...

Yes, Fortran mostly works this way.
          • ... Uri Guttman
            • ... Adam Rice
      • ... Brent Dax
        • ... Uri Guttman
          • ... Rich Morin
            • ... Jim Cromie
              • ... Luke Palmer
          • ... Dmitry Kohmanyuk Дмитрий Кохманюк
  • ... Yitzchak Scott-Thoennes
    • ... Rich Morin
      • ... Yitzchak Scott-Thoennes
        • ... Rich Morin
        • ... Dmitry Kohmanyuk Дмитрий Кохманюк
          • ... Yitzchak Scott-Thoennes
  • ... Matthew Wickline
  • ... Rich Morin

Reply via email to