home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a120 / 1.ddi / WATCOM_C / WAT67.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-05-21  |  668 b   |  25 lines

  1. /*------------------------------------------------------------------*/
  2. /* ╡{ªí└╔ªW║┘: wat67.c                                              */
  3. /*------------------------------------------------------------------*/
  4. #include <sys\types.h>
  5. #include <fcntl.h>
  6. #include <stdio.h>
  7. #include <io.h>
  8.  
  9. void main(int argc,char *argv[])
  10. {
  11.  int handle;
  12.  
  13.  if(argc == 1)
  14.       printf("¿╧Ñ╬ñΦ¬k: wat67 <└╔«╫ªW║┘.¬■└╔ªW>\n");
  15.  else if(argc == 2)
  16.       {
  17.          handle = open(argv[1],O_RDONLY);
  18.          if(handle != -1)
  19.          {
  20.             printf("└╔«╫ %s ñº¬°½╫¼░ %ld ª∞ñ╕▓╒\n",argv[1],filelength(handle));
  21.             close(handle);
  22.          }
  23.       }
  24. }
  25.