C Language Program To Display Disk Space in Dos System


#include <stdio.h>
#include <dos.h>
#include <conio.h>
void main(void)
{
struct dfree diskinfo;
long disk_space;
clrscr();
getdfree(3, &diskinfo);
disk_space = (long) diskinfo.df_avail * (long) diskinfo.df_bsec * (long) diskinfo.df_sclus;
printf("Available disk space %ld\n", disk_space);
clrscr();
}



Sample Output :
Available disk space 215359488


Contact:
Mr. Roshan P. Helonde
Mobile: +91-7276355704
WhatsApp: +91-7276355704
Email: roshanphelonde@rediffmail.com
Share:

Total Pageviews

CONTACT US

Prof. Roshan P. Helonde
Mobile: +917276355704
WhatsApp: +917276355704
Email: roshanphelonde@rediffmail.com

Enter Project Title

Popular Projects

All Archive

Contact Form

Name

Email *

Message *