In C, printing to standard output (stdout) is easy, with printf
from stdio.h
.
However, how can I print to standard error (stderr)? We can use fprintf
to achieve it apparently, but its syntax seems strange. Maybe we can use printf
to print to standard error?