home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / std / c / 2625 < prev    next >
Encoding:
Text File  |  1992-09-14  |  793 b   |  34 lines

  1. Newsgroups: comp.std.c
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!ncar!csn!teal.csn.org!c4craig
  3. From: c4craig@teal.csn.org (Craig Anderson)
  4. Subject: POSIX version of chsize/ftruncate?
  5. Message-ID: <BuL6E4.2wq@csn.org>
  6. Sender: news@csn.org (news)
  7. Nntp-Posting-Host: teal.csn.org
  8. Organization: Colorado SuperNet, Inc.
  9. Date: Mon, 14 Sep 1992 21:01:09 GMT
  10. Lines: 22
  11.  
  12.  
  13. How should I port a DOS call to chsize() to STD C / POSIX?
  14.  
  15. In SunOS and BSD/386 I find:
  16.  
  17. int ftruncate(int fd, off_t length)
  18.   truncate a file to a specified length
  19.  
  20. In DOS Turbo C++ I find:
  21.  
  22. int chsize(int handle,k long size)
  23.   Changes the file size.
  24.  
  25. Thanks for any suggestions,
  26.  
  27. Craig H. Anderson
  28. C4 Network, Inc.
  29. 518 17th Street, Suite 1400
  30. Denver, CO 80202
  31.     (303) 825-8183
  32. FAX (303) 893-6510
  33. c4craig@csn.org
  34.