GINO Graphics Suite - GINO v9.0  

gArchiveSegs

Syntax

[C/C++:]
void gArchiveSegs(GFILE *fp);
[F90:]
subroutine gArchiveSegs(unit)
integer, intent(in) :: unit

Arguments

fp
GINO-C file pointer to archive Software Display File

unit
Fortran 90 file unit to archive Software Display File

Description

The routine gArchiveSegs() archives the complete contents of the Software Display File either from memory or file into a sequential file. The file may later be restored using gRetrieveSegs().

The file should be opened prior to calling this routine using the function gFopen(), with the file pointer or unit number passed as appropriate.

If the Software Display File is not active (ie. gSetSegMode() has not been called) an error message is output and no action is taken. The complete contents of the Software Display File will be archived except any contents of segment zero (the non-retained segment). If there is a file open on fp then it will be closed and deleted.

See Also

gArchiveSegs Usage
gFopen
gRetrieveSegs
gSetSegMode