Image_print_version now go to stderr

This commit is contained in:
tTh 2023-09-23 20:00:14 +02:00
parent ba7ba3d666
commit 7b0384a3b7

View File

@ -13,25 +13,24 @@
#include "../tthimage.h" #include "../tthimage.h"
/*::------------------------------------------------------------------::*/ /*::------------------------------------------------------------------::*/
void void Image_print_version(int flag)
Image_print_version(int flag)
{ {
char *ptr; char *ptr;
fflush(stdout); 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); IMAGE_VERSION_STRING);
if (flag) if (flag)
{ {
/* this information is only correct IF you touch image.c before /* this information is only correct IF you touch image.c before
* running 'make' utility */ * running 'make' utility */
printf(" + compiled : %s, %s\n", __DATE__, __TIME__); fprintf(stderr, " + compiled : %s, %s\n", __DATE__, __TIME__);
} }
if (flag > 1) if (flag > 1)
{ {
printf(" + DESTDIR = %s\n", DESTDIR); fprintf(stderr, " + DESTDIR = %s\n", DESTDIR);
printf(" + SHAREDIR = %s\n", SHAREDIR); fprintf(stderr, " + SHAREDIR = %s\n", SHAREDIR);
printf(" + CC OPTS = %s\n", CC_OPTS); fprintf(stderr, " + CC OPTS = %s\n", CC_OPTS);
} }
fflush(stdout); fflush(stdout);