CTLSEQS_PURGE(3) ctlseqs CTLSEQS_PURGE(3)

ctlseqs_purge - purge read buffer

#include <ctlseqs.h>
void ctlseqs_purge(
    struct ctlseqs_reader *reader,
    size_t                 nbytes
);

Removes up to nbytes number of leading bytes from the internal read buffer of given reader, and resets the current state of the reader.

If nbytes is zero, this function has no effect.

This function has no return values.

The function is useful when dealing with partial sequences returned by ctlseqs_read, whose future completion is not desired.

Copyright (c) 2020,2021 CismonX <admin@cismon.net>

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty, provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.

ctlseqs_read(3)
September 1, 2020 0.1.0