From 7b0384a3b76c6f50b1e746299221fcc3c5f62b01 Mon Sep 17 00:00:00 2001 From: tTh Date: Sat, 23 Sep 2023 20:00:14 +0200 Subject: [PATCH] Image_print_version now go to stderr --- Lib/image.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Lib/image.c b/Lib/image.c index 3f6d600..9e68584 100644 --- a/Lib/image.c +++ b/Lib/image.c @@ -13,25 +13,24 @@ #include "../tthimage.h" /*::------------------------------------------------------------------::*/ -void -Image_print_version(int flag) +void Image_print_version(int flag) { char *ptr; fflush(stdout); -printf("-+- This is the `tthimage' library v%s (wtfyw 2022) tTh\n", +fprintf(stderr, "-+- This is the `tthimage' library v%s (wtfyw 2023) tTh\n", IMAGE_VERSION_STRING); if (flag) { /* this information is only correct IF you touch image.c before * running 'make' utility */ - printf(" + compiled : %s, %s\n", __DATE__, __TIME__); + fprintf(stderr, " + compiled : %s, %s\n", __DATE__, __TIME__); } if (flag > 1) { - printf(" + DESTDIR = %s\n", DESTDIR); - printf(" + SHAREDIR = %s\n", SHAREDIR); - printf(" + CC OPTS = %s\n", CC_OPTS); + fprintf(stderr, " + DESTDIR = %s\n", DESTDIR); + fprintf(stderr, " + SHAREDIR = %s\n", SHAREDIR); + fprintf(stderr, " + CC OPTS = %s\n", CC_OPTS); } fflush(stdout);