www.delorie.com/archives/browse.cgi | search |
Date: | Wed, 28 Jul 93 10:08:45 EDT |
From: | peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock) |
To: | madmax AT prix1 DOT pr DOT infn DOT it |
Cc: | djgpp AT sun DOT soe DOT clarkson DOT edu |
> In my source, I need to know the dimension of some files and to change it: in > Borland C I use the functions filelength() ans chsize().... How could I do > the same using DJGCC ? Try fseek() to end of file and ftell() to get the file size and fseek() followed by ftruncate() and fclose() to change the size.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |