Logo

Programming-Idioms

History of Idiom 59 > diff from v6 to v7

Edit summary for version 7 by :

Version 6

2015-08-19, 18:06:48

Version 7

2015-08-20, 11:00:28

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>
Code
fprintf(stderr,"%d is negative",x);