Hello,

   I noticed recently a discusion about *printf*() function.

   I wish to be able to specify formating of groups of parameters.
Eg.
        printf("Date: %11{%d.%d. %4d}, City: %s\n", $day, $mounth, $year);

Variables $day and $mounth could be one or two digits. There should not
be any (zero or space) padding of each, but as whole it should be space
left padded to specified width. Some more lines of output would look
like:
        Date:  1.10.  996, City: Bruchsal
        Date:   6.6. 1944, City: Normandia
        Date: 17.11. 1989, City: Prag
        Date:  9.11. 2003, City: Roma
        Date:  22.5. 2004, City: Mariazell

   I suggest to use ``%{'' for this; without any parameter. Propagation to
libc would be welcomed. Also for strftime() and others.

        Best regards
                                                Hans Ginzel

Reply via email to