www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/07/28/10:57:25

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019