CoolInterview.com - World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.


  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!



    Send your Resume to 6000 Companies


  • INTERVIEW QUESTIONS LANGUAGES C DETAILS
    Question :
    How can I find out how much free space is available on disk?
    Category C Interview Questions
    Rating (0.3) By 9 users
    Added on 11/17/2011
    Views 169
    Rate it!
    Answers:

    There is no portable way. Under some versions of Unix you can call statfs. Under MS-DOS, use interrupt 0x21 subfunction 0x36, or perhaps a routine such as diskfree. Another possibility is to use popen to invoke and read the output of a ``disk free'' command (df on Unix).
    (Note that the amount of free space apparently available on a disk may not match the size of the largest file you can store, for all sorts of reasons.)



    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in CoolInterview.com:-

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • Name :*
    Email Id :*
    Answer :*
    Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
    Process Verification  Enter the above shown code:*
    Inform me about updated answers to this question

       
    Related Questions
    View Answer
    How can I read a directory in a C program?
    View Answer
    How do I create a directory? How do I remove a directory (and its contents)?
    View Answer
    How can I find out how much memory is available?
    View Answer
    How can I allocate arrays or structures bigger than 64K?
    View Answer
    I thought that using large model meant that I could use more than 64K of data!
    View Answer
    How can I invoke another program (a standalone executable, or an operating system command) from within a C program?
    View Answer
    How can I call system when parameters (filenames, etc.) of the executed command arent known until run time
    View Answer
    How do I get an accurate error status return from system on MS-DOS?
    View Answer
    How can I invoke another program or command and trap its output?
    View Answer
    How can my program discover the complete pathname to the executable from which it was invoked?
    View Answer
    How can I automatically locate a programs configuration files in the same directory as the executable?
    View Answer
    How can I open files mentioned on the command line, and parse option flags?
    View Answer
    Is exit(status) truly equivalent to returning the same status from main?
    View Answer
    How can I read in an object file and jump to locations in it?
    View Answer
    How can I implement a delay, or time a users response, with sub-second resolution?
    View Answer
    How can I trap or ignore keyboard interrupts like control-C?
    View Answer
    How can I handle floating-point exceptions gracefully?
    View Answer
    How can I ensure that integer arithmetic doesnt overflow?
    View Answer
    What are near and far pointers?
    View Answer
    But I cant use all these nonstandard, system-dependent functions, because my program has to be ANSI compatible!
    View Answer


    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

    View ALL C Interview Questions

    User Options
    Sponsored Links


    Copyright ©2003-2014 CoolInterview.com, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes


    Cache = 2.078125 Seconds