Alternately "file=%2\$s line=%3\$s param=%4\$d\n". Note that the indexing starts by 1.
Update: fixed typo in code where one of the \$ was \% instead.
In reply to Re: Skipping parameters in sprintf %, elegantly
by ambrus
in thread Skipping parameters in sprintf %, elegantly
by brycen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |