www.delorie.com/djgpp/doc/libc-2.01/libc_262.html   search  
Go to the first, previous, next, last section, table of contents.


fflush

Syntax

#include <stdio.h>

int fflush(FILE *file);

Description

This function causes any unwritten buffered data to be written out to the given file. This is useful in cases where the output is line buffered and you want to write a partial line.

Return Value

Zero on success, -1 on error.

Example

printf("Enter value : ");
fflush(stdout);
scanf(result);


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997