libansilove

Library for converting ANSI, ASCII, and other formats to PNG
Log | Files | Refs | README | LICENSE

commit 2cd1977130f5d6c3bb78a69e7f8d21885b708de1
parent 9e3a4cde11f0f895eab33e3915df490d26349de9
Author: Frederic Cambus <fred@statdns.com>
Date:   Wed,  4 Jul 2018 11:04:35 +0200

Change return value of the ouput function to int, for error handling

Diffstat:
Msrc/output.c | 2+-
Msrc/output.h | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/output.c b/src/output.c @@ -11,7 +11,7 @@ #include "output.h" -void output(gdImagePtr im_Source, char *output, char *retinaout, int retinaScaleFactor) { +int output(gdImagePtr im_Source, char *output, char *retinaout, int retinaScaleFactor) { FILE *file_Out = fopen(output, "wb"); if (file_Out) { diff --git a/src/output.h b/src/output.h @@ -17,6 +17,6 @@ #define output_h // prototypes -void output(gdImagePtr im_Source, char *output, char *retinaout, int retinaScaleFactor); +int output(gdImagePtr im_Source, char *output, char *retinaout, int retinaScaleFactor); #endif