changequote({,}) define({_TITLE_},{Varkon MBS Programmers manual}) define({_SUBTITLE_},{- fpos - Function}) define({_INDEXLINK_},{index}) define({_STYLE_},{../varkonstyle.css}) include(../../include/header.inc)

fpos - Function

Description

Returns the current filepointer position within a file as the offset in bytes from the start. If the current position is the end of the file (EOF) -1 is returned.

Syntax

  i:=fpos(f);

  int  i;
  file f;

Principal parameters

f - The name of a filevariable associated with an open file

Optional parameters

None.

Return value

An INT value greater or equal to zero or minus 1 if current position is end of file.

See also

seek()

include(../../include/svnversion.inc) include(../../include/footer.inc)