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


feof

Syntax

#include <stdio.h>

int feof(FILE *file);

Description

This function can be used to indicate if the given file is at the end-of-file or not.

Return Value

Nonzero at end-of-file, zero otherwise.

Example

while (!feof(stdin))
  gets(line);


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

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