10 Eylül 2021 Cuma tarihinde Robert Elz <k...@munnari.oz.au> yazdı:
>
> But the third argument is c the first time around.
> Why would that be replaced by '' ?
> It is then, perhaps, '' the next iteration of the format string.
>

I should have said "the current subset of arguments being processed" or
something like that. What I meant was that, as the format string `%2$s
%1$s\n' contains only two format specifiers, each turn, printf would
process only two arguments in isolation; as if it were called twice, first
with a and b as the arguments, and second with c and d.

But that's not how printf(3) works and upon reflection I'm not really sure
this is a good idea anymore.


-- 
Oğuz
              • ... Harald van Dijk via austin-group-l at The Open Group
              • ... Joerg Schilling via austin-group-l at The Open Group
              • ... Harald van Dijk via austin-group-l at The Open Group
              • ... Stephane Chazelas via austin-group-l at The Open Group
              • ... Joerg Schilling via austin-group-l at The Open Group
              • ... Stephane Chazelas via austin-group-l at The Open Group
              • ... Stephane Chazelas via austin-group-l at The Open Group
              • ... Joerg Schilling via austin-group-l at The Open Group
              • ... Stephane Chazelas via austin-group-l at The Open Group
  • Re: Adding %n$ conv... Robert Elz via austin-group-l at The Open Group
    • Re: Adding %n$... Oğuz via austin-group-l at The Open Group
    • Re: Adding %n$... Joerg Schilling via austin-group-l at The Open Group
  • Re: Adding %n$ conv... Don Cragun via austin-group-l at The Open Group

Reply via email to