Image_print_version now go to stderr
This commit is contained in:
parent
ba7ba3d666
commit
7b0384a3b7
13
Lib/image.c
13
Lib/image.c
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user