home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0040 - 0049 / ibm0040-0049 / ibm0040.tar / ibm0040 / IMGPROC.ZIP / C6TIFF.ZIP / ERROR.C < prev    next >
Encoding:
C/C++ Source or Header  |  1989-12-30  |  942 b   |  40 lines

  1. /*
  2.  * Copyright (c) 1988 by Sam Leffler.
  3.  * All rights reserved.
  4.  *
  5.  * This file is provided for unrestricted use provided that this
  6.  * legend is included on all tape media and as a part of the
  7.  * software program in whole or part.  Users may copy, modify or
  8.  * distribute this file at will.
  9.  */
  10.  
  11. #include <stdio.h>
  12. #include <stdarg.h>
  13. #include "tiffio.h"
  14.  
  15. void TIFFWarning(char *module, char *fmt, ...)
  16. {
  17.    va_list argptr;
  18.  
  19.    if (module != NULL)
  20.       fprintf(stderr, "%s", module);
  21.    fprintf(stderr, " -- Warning:\n");
  22.    va_start(argptr,fmt);
  23.    vfprintf(stderr, fmt, argptr);
  24.    fprintf(stderr, ".\n");
  25.    va_end(argptr);
  26. }
  27.  
  28. void TIFFError(char *module, char *fmt, ...)
  29. {
  30.    va_list argptr;
  31.  
  32.    if (module != NULL)
  33.       fprintf(stderr, "%s", module);
  34.    fprintf(stderr, " -- Error:\n");
  35.    va_start(argptr,fmt);
  36.    vfprintf(stderr, fmt, argptr);
  37.    fprintf(stderr, ".\n");
  38.    va_end(argptr);
  39. }
  40.