set_flush_nl

BAP Online Manuals : Library Reference : Library by Name : set_flush_nl
Previous: set_cut
Next: set_id

6.2.122. set_flush_nl

sets the flush mode for the output buffer

SYNOPSIS

INCLUDE 'iolib.h'
set_flush_nl(Mode)

SYNTAX

set_flush_nl(Mode)

ARGUMENTS

integer(Mode) (i) flush mode

DESCRIPTION

If the flush mode is set to 1 (default), the output buffer is flushed automatically after every nl character. Setting mode to 0 suppresses this, causing the buffer to be flushed only when full or when flush_print_buffer is called. Mode 0 increases data throughput because less server communication is required, which is especially useful with file i/o.

LAYERS

prolog-process, client-server, object

RELATED PREDICATES

flush_print_buffer


BAP Online Manuals : Library Reference : Library by Name : set_flush_nl
Previous: set_cut
Next: set_id