delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/13/11:04:48

From: "Neil" <reply_to_me AT the DOT newsgroup>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Thanks all!
Date: Fri, 13 Mar 1998 15:55:24 -0000
Organization: Fredco
Lines: 26
Message-ID: <6ebkm9$dpu$1@flex.news.pipex.net>
References: <199803130333 DOT TAA08535 AT adit DOT ap DOT net>
NNTP-Posting-Host: gatekeeper.littlewoods-stores.co.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Nate Eldredge wrote in message <199803130333 DOT TAA08535 AT adit DOT ap DOT net>...
>>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:\");...)
>
>Yes, It's called `statfs'. :) I believe it's the same interface as Unix.
See
>its docs.
>
>Incidentally, `df' comes with the ported GNU fileutils package, so you're
>reinventing the wheel. Not that there's anything *wrong* with that... :)


Thank you all for your helpful and informative advice.

Later...

Neil



- Raw text -


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