Implement dynamic precision in printf.