home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 993 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  858 b 

  1. Path: t500.vol.it!news
  2. From: robiz@mbox.vol.it (Roberto Bizzarri)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Real-file-size
  5. Date: 12 Jan 1996 22:21:44 GMT
  6. Organization: Video On Line
  7. Message-ID: <536.6585T1386T2427@mbox.vol.it>
  8. NNTP-Posting-Host: 194.166.59.133
  9. X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
  10.  
  11. Hello! I'm looking for a routine (language C) thar returns the _real_ size of
  12. a file. For example,  a file of 100 bytes needs two block on a disk:
  13. header-block + data-block.
  14.  
  15. If disk is FFS, it will get 512 + 512 bytes...
  16.  
  17. If HardDisk with blocks of 2048 bytes each, 2048+2048...
  18.  
  19. If RAM Disk, 1024 + 1024... and so on.
  20.  
  21. In other words, similar to /list/ command (shows blocks).
  22.  
  23. Can you help me? Thanks!
  24.  
  25.  
  26.  
  27.  
  28.  __        __
  29.  |_)       |_)
  30.  | \oberto |_)izzarri  (E-mail: robiz@mbox.vol.it)
  31.                        (FidoNet: 2:332/901.31)
  32.  
  33.