www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/23/15:34:07

Message-ID: <000b01bed541$a964d220$137336ce@sandrajo>
From: "Christopher Nelson" <neverjaden AT yahoo DOT com>
To: <djgpp AT delorie DOT com>
References: <99072310052600 DOT 01111 AT dome DOT calderathin DOT com>
Subject: Re: file size
Date: Fri, 23 Jul 1999 13:28:57 -0600
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Reply-To: djgpp AT delorie DOT com


> Does anyone know how to get the size of a file in DJGPP?
> 


size_t filesize;

feek(thefile, 0, SEEK_END);
ftell(thefile);

otherwise you'll have to use fstat or stat.

-={C}=-

- Raw text -


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