•  Back 
  •  GEMDOS Function Reference 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  %About 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The ATARI Compendium
Author      : Scott Sanders / JAY Software
Version     : 1.25 (20/6/2003)
Subject     : Documentation
Nodes       : 1117
Index Size  : 32614
HCP-Version : 6
Compiled on : Atari
@charset    : UTF-8
@lang       : en
@default    : 
@help       : %About
@options    : +g -i -t4 +y +z
@width      : 100
View Ref-FileCauxis()
Cconis()
Fcntl()
Foutstat()
Finstat()                                                            GEMDOS

Syntax

LONG Finstat( handle )
WORD handle;

Function      Finstat() determines the input status of a file.

Opcode        261 (0x105)

Availability  This function is available under all MiNT versions
              integrated with MultiTOS.

Parameters    handle specifies the GEMDOS file handle of the file to
              return information about.

Binding       move.w   handle,-(sp)
              move.w   #$105,-(sp)
              trap     #1
              addq.l   #4,sp

Return Value  Finstat() returns 0 or a positive number of characters
              waiting to be read if successful. A negative GEMDOS error
              code is returned otherwise.

Caveats       Currently Finstat() always returns 0 for disk files.

See Also      Cauxis(), Cconis(), Fcntl(), Foutstat()