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


ftell

Syntax

#include <stdio.h>

long ftell(FILE *file);

Description

Returns the current file position for file. This is suitable for a future call to fseek.

Return Value

The file position, or -1 on error.

Portability

ANSI, POSIX

Example

long p = ftell(stdout);


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