home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / program / grfx_snd / tifflib / source / tif_cmpt.c < prev    next >
C/C++ Source or Header  |  1992-11-09  |  767b  |  30 lines

  1. #pragma warn -use
  2. static char     *sccsid = "@(#)TIFF/tif_compat.c 1.05, Copyright (c) Sam Leffler, Dieter Linde, "__DATE__;
  3. #pragma warn -use
  4. /*
  5.  * Copyright (c) 1988, 1990 by Sam Leffler, Oct 8 1990
  6.  * All rights reserved.
  7.  *
  8.  * This file is provided for unrestricted use provided that this legend is included on all tape media and as a part of the
  9.  * software program in whole or part.  Users may copy, modify or distribute this file at will.
  10.  *
  11.  * TIFF Library.
  12.  *
  13.  * Compatibility Routines.
  14.  */
  15. #include <ext.h>
  16. #include "tiffio.h"
  17.  
  18. /****************************************************************************
  19.  *
  20.  */
  21. long
  22. TIFFGetFileSize(
  23.     int     fd
  24.     )
  25. {
  26.         struct stat    sb;
  27.  
  28.         return(fstat(fd, &sb) == -1 ? 0 : sb.st_size);
  29. }
  30.