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"
/*::------------------------------------------------------------------::*/
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);