home *** CD-ROM | disk | FTP | other *** search
- /*
- * Copyright (c) 1988 by Sam Leffler.
- * All rights reserved.
- *
- * This file is provided for unrestricted use provided that this
- * legend is included on all tape media and as a part of the
- * software program in whole or part. Users may copy, modify or
- * distribute this file at will.
- */
-
- #include <stdio.h>
- #include <stdarg.h>
- #include "tiffio.h"
-
- void TIFFWarning(char *module, char *fmt, ...)
- {
- va_list argptr;
-
- if (module != NULL)
- fprintf(stderr, "%s", module);
- fprintf(stderr, " -- Warning:\n");
- va_start(argptr,fmt);
- vfprintf(stderr, fmt, argptr);
- fprintf(stderr, ".\n");
- va_end(argptr);
- }
-
- void TIFFError(char *module, char *fmt, ...)
- {
- va_list argptr;
-
- if (module != NULL)
- fprintf(stderr, "%s", module);
- fprintf(stderr, " -- Error:\n");
- va_start(argptr,fmt);
- vfprintf(stderr, fmt, argptr);
- fprintf(stderr, ".\n");
- va_end(argptr);
- }