www.delorie.com/djgpp/doc/libc-2.01/libc_305.html   search  
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.

Example

long p = ftell(stdout);


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

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