Guardian Programming Reference Summary for C

Functions Summary (D-F)
Guardian Programming Reference Summary for C522630-001
5-36
FILE_RESTOREPOSITION_
The FILE_RESTOREPOSITION_ procedure supersedes the REPOSITION procedure
and is used to position a disk file to a saved position (the positioning information having
been saved by a call to the FILE_SAVEPOSITION_
procedure).
FILE_SAVEPOSITION_
The FILE_SAVEPOSITION_ procedure supersedes the SAVEPOSITION procedure and
is used to save a disk file’s current file positioning information in anticipation of a need
to return to that position. This procedure can be used with format 2 files.
FILE_SETKEY_
The FILE_SETKEY_ procedure supersedes the KEYPOSITION[X] procedures. The
FILE_SETKEY_ procedure is used to position by primary or alternate key within a
structured file, and sets the current position, access path, and positioning mode for the
specified file. FILE_SETKEY_ can be used with format 2 files.
#include <cextdecs(FILE_RESTOREPOSITION_)>
short FILE_RESTOREPOSITION_ ( short filenum /* i */
,short * savearea /* i */
,short savesize ); /* i */
#include <cextdecs(FILE_SAVEPOSITION_)>
short FILE_SAVEPOSITION_ ( short filenum /* i */
,short * savearea /* o */
,short savemax /* i */
,short * savesize ); /* o */
#include <cextdecs(FILE_SETKEY_)>
short FILE_SETKEY_ ( short filenum /* i */
, char * key-value /* i */
, short key-len /* i */
, [ short keyspecifier ] /* i */
, [ short positioningmode ] /* i */
, [ short options ] /* i */
, [ short comparelength ] ); /* i */