Article View: comp.std.c
Article #1200POSIX version of chsize/ftruncate?
From: Craig Anderson
Date: Mon, 14 Sep 1992 21:01
Date: Mon, 14 Sep 1992 21:01
22 lines
826 bytes
826 bytes
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
Technical Details
Message-ID:
<BuL6E4.2wq@csn.org>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!ncar!csn!teal.csn.org!c4craigShow Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!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