SLOG_Irec_ToOutputStream

store the given interval record in the frame buffer and write it out to the disk when the frame buffer is full.

Synopsis


int SLOG_Irec_ToOutputStream(       SLOG_STREAM      *slog,
                              const SLOG_intvlrec_t  *irec )

Modified Input Variables

slog - pointer to SLOG_STREAM where interval record will be stored.

Unmodified Input Variables

irec - pointer to constant interval record with the fields set by the user before this routine is called.

Modified Output Variables

returned value - integer return status.

Usage Notes on this subroutine

The routine provides all the core management of the implementation of SLOG_STREAM. Be sure to call SLOG_Irec_SetMinRec() at least once for the interval record to be appended to the SLOG_STREAM.

Include File Needed

slog.h

Notes on SLOG return status code

There are 3 allowed SLOG returned status codes. They are SLOG_SUCCESS, SLOG_FAIL and SLOG_EOF. Their actual values are defined in slog.h

SLOG_SUCCESS is returned when no error is encountered.

SLOG_FAIL is returned when error is encounted.

SLOG_EOF is returned when End of file is encounted.

Location:../src/slog_irec_write.c