From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP newbie Date: Thu, 12 Mar 1998 18:15:09 -0500 Organization: Cornell University (http://www.cornell.edu/) Lines: 22 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <35086C7D.45F20D24@cornell.edu> References: <6e921s$dcr$1 AT flex DOT news DOT pipex DOT net> NNTP-Posting-Host: cu-dialup-0405.cit.cornell.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Neil wrote: > > I am used to writing C programs on UNIX. Now I need to write a noddy C > program for DOS that outputs the amount of free disk space. > > I did write a version of "df" on UNIX, is there an equivalent of the > statfs structure using DJGPP, or alternatively what's the easiest was > of finding free disk space (apart from cutting up the output of > system("dir c:\");...) try c:\>info libc alpha _dos_getdiskfree -- ---------------------------------------------------------------------- A. Sinan Unur Department of Policy Analysis and Management, College of Human Ecology, Cornell University, Ithaca, NY 14853, USA mailto:sinan DOT unur AT cornell DOT edu http://www.people.cornell.edu/pages/asu1/