This source file includes following definitions.
- GifQprintf
- PrintGifError
#include <stdio.h>
#include <stdbool.h>
#include <stdarg.h>
#include "gif_lib.h"
bool GifNoisyPrint = false;
void
GifQprintf(char *Format, ...) {
va_list ArgPtr;
va_start(ArgPtr, Format);
if (GifNoisyPrint) {
char Line[128];
(void)vsnprintf(Line, sizeof(Line), Format, ArgPtr);
(void)fputs(Line, stderr);
}
va_end(ArgPtr);
}
void
PrintGifError(int ErrorCode) {
const char *Err = GifErrorString(ErrorCode);
if (Err != NULL)
fprintf(stderr, "GIF-LIB error: %s.\n", Err);
else
fprintf(stderr, "GIF-LIB undefined error %d.\n", ErrorCode);
}