---
name: "SLOG_Irec_ToOutputStream"
section: "3"
platform: "linux"
package: "mpi-doc"
version: "1.2.5.3-5"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/SLOG_Irec_ToOutputStream"
---

# SLOG\_Irec\_ToOutputStream(3)

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

## NAME

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 the 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.  Also this routine can be called in either increasing starttime and endtime order depending if SLOG\_IsIncreasingStarttimeOrder() or SLOG\_IsIncreasingEndtimeOrder() is called.   But NOT both.  And there is time order checking code if user turns on the corresponding compiler flag.

## INCLUDE FILE NEEDED

slog.h

## NOTES ON SLOG RETURN STATUS CODE

There are 5 allowed SLOG returned status codes.  They include 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.

There are also SLOG\_TRUE and SLOG\_FALSE which are sued as boolean values, in particular they are used in boolean functions which are usually named as IsXXXXX(), AreXXXXX() and HasXXXXX().\

## LOCATION
