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.

Portability

ANSI, POSIX

Example

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


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