Guardian Procedure Calls Reference Manual

CHECK^FILE Procedure
Summary
Syntax for C Programs
Syntax for TAL Programmers
Parameters
Returned Value
Operations
Considerations
Examples
Related Programming Manual
Summary
The CHECK^FILE procedure checks the file characteristics of a specified file.
CHECK^FILE is a sequential I/O (SIO) procedure and can be used only with files that have been
opened by OPEN^FILE.
Syntax for C Programs
Syntax for Native C programs:
#include <cextdecs(CHECK_FILE)>
short CHECK_FILE ( short { _near *common-fcb }
{ _near *file-fcb }
,short operation
,[ short _near *ret-addr ] );
Syntax for TNS C programs:
#include <cextdecs(CHECK_FILE)>
short CHECK_FILE ( short { _near *common-fcb }
{ _near *file-fcb }
,short operation );
Syntax for TAL Programmers
For pTAL callers, the procedure definition is:
retval := CHECK^FILE ( { common-fcb } ! i
{ file-fcb } ! i
,operation ! i
,[ ret-addr ] ); ! o
For other callers, the procedure definition is:
retval := CHECK^FILE ( { common-fcb } ! i
{ file-fcb } ! i
,operation ); ! i
122 Guardian Procedure Calls (C)