Logo

Programming-Idioms

History of Idiom 59 > diff from v8 to v9

Edit summary for version 9 by :

Version 8

2015-08-20, 11:01:22

Version 9

2015-08-20, 11:03:26

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Imports
#include <stdio.h>
Imports
#include <stdio.h>
Code
fprintf(stderr,"%d is negative",x);
Code
fprintf(stderr,"%d is negative\n",x);