C Console Output and Error Printing using printf and fprintf