binio-ftell


Synopsis

(binio-ftell <stream>)

Description

Returns the position of the actual file pointer of the opened stream.

Dependant on an external library: so far only binio.fas for ViLL or vlisp.

Examples

(binio-fseek f 2004)
(binio-ftell f)	=> 2004
(binio-frewind f)(repeat 10 (binio-fgetc f))
(binio-ftell f)	=> 10

Arguments

stream: internal object representation of a opened binary file.

Return Value

Either the new file pointer position as integer. Or a real number if the number is too large for the current AutoLISP integer representation. Or nil on any non-serious error. (when nil?)

Side Effects

None.

Module

(std-require-external 'BINIO)

Defined in BINIO