home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 2 / DATAFILE_PDCD2.iso / utilities2 / desklib / Libraries / File / c / Size < prev   
Encoding:
Text File  |  1993-07-11  |  875 b   |  26 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for 
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #                                      
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    File.Size.c
  12.     Author:  Copyright © 1993 Jason Williams
  13.     Version: 1.00 (12 Jul 1993)
  14.     Purpose: Reads the size of the given file
  15. */
  16.  
  17. #include "kernel.h"
  18.  
  19. extern int File_Size(char *filename)
  20. {
  21.   _kernel_osfile_block osfile;
  22.  
  23.   _kernel_osfile(13, filename, &osfile);
  24.   return (osfile.start);
  25. }
  26.