Sha256: 24e613070566fa3ba01acef967069cebd9af8aa74bcbc93a3b1b40122653571b
Contents?: true
Size: 1.1 KB
Versions: 2
Compression:
Stored size: 1.1 KB
Contents
/***************************************************************************** qprintf.c - module to emulate a printf with a possible quiet (disable mode.) A global variable GifNoisyPrint controls the printing of this routine *****************************************************************************/ #include <stdio.h> #include <stdbool.h> #include <stdarg.h> #include "gif_lib.h" bool GifNoisyPrint = false; /***************************************************************************** Same as fprintf to stderr but with optional print. ******************************************************************************/ 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); } /* end */
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
giflib-0.4 | ext/giflib/giflib-5.1.1/util/qprintf.c |
giflib-0.3 | ext/giflib/giflib-5.1.1/util/qprintf.c |