home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.std.c
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!ncar!csn!teal.csn.org!c4craig
- From: c4craig@teal.csn.org (Craig Anderson)
- Subject: POSIX version of chsize/ftruncate?
- Message-ID: <BuL6E4.2wq@csn.org>
- Sender: news@csn.org (news)
- Nntp-Posting-Host: teal.csn.org
- Organization: Colorado SuperNet, Inc.
- Date: Mon, 14 Sep 1992 21:01:09 GMT
- Lines: 22
-
-
- How should I port a DOS call to chsize() to STD C / POSIX?
-
- In SunOS and BSD/386 I find:
-
- int ftruncate(int fd, off_t length)
- truncate a file to a specified length
-
- In DOS Turbo C++ I find:
-
- int chsize(int handle,k long size)
- Changes the file size.
-
- Thanks for any suggestions,
-
- Craig H. Anderson
- C4 Network, Inc.
- 518 17th Street, Suite 1400
- Denver, CO 80202
- (303) 825-8183
- FAX (303) 893-6510
- c4craig@csn.org
-