Implement (v)fprintf()