Actually, whether redfining putc() affects printf() or not is implementation-dependent. This reinforces the point that users should not redefine standard library functions.