C history question here. Why does the C function putc
require a second parameter like
putc( 'c', stdout ) ;
While puts is oh so more convenient
puts( "a string" ) ;
There is a function in msvc++
putchar( 'c' ) ;
Which works the way one might expect putc
to work. I thought the second parameter of putc
was to be able to direct putc
to a file, but there is a function fputc
for that.