home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / SOFTWARE / LIBS / PMC101.ZIP / LIBSRC.ZIP / FILESIZE.C (.txt) < prev    next >
C/C++ Source or Header  |  1994-06-22  |  272b  |  18 lines

  1. #include "pmc.h"
  2.  
  3. long __pascal filesize (WORD handle)
  4. {
  5.   long t;
  6.   int r;
  7.  
  8.   if ((t = filelseek (handle, 0, SEEK_CUR)) < 0)
  9.     return t;
  10.  
  11.   if ((r = filelseek (handle, 0, SEEK_END)) < 0)
  12.     return r;
  13.  
  14.   filelseek (handle, t, SEEK_SET);
  15.   return r;
  16. }
  17.  
  18.