Subscribe via Email

Enter your email address to subscribe and receive notifications of new content by email.

Free Disk space

Reports the free disk space on a DOS system

#include <stdio.h>
#include <dos.h>

void main(void)

struct dfree diskinfo;
long disk_space;
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);

FacebookTwitterGoogle+PinterestTumblrStumbleUponRedditLinkedInWhatsAppBibSonomyDeliciousDiggDiigoSina WeiboWordPressBlogger PostShare

Leave a Reply





You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>