about fflush function.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nidhi shah
    New Member
    • Jun 2011
    • 5

    about fflush function.

    we use the fflush function to flush out the unwanted characters. But,i want to know that "how it works?".And what will happen if we don't use it?
  • puneetsardana88
    New Member
    • Aug 2009
    • 57

    #2
    fflush

    If stream points to an output stream or an update stream in which the most recent operation was not input, the fflush() function causes any unwritten data for that stream to be written to the file, and the st_ctime and st_mtime fields of the underlying file are marked for update.

    If stream is a null pointer, the fflush() function performs this flushing action on all output or update streams in which the most recent operation was not input.

    Comment

    Working...