libmawk_run_main(3libmawk)

libmawk_run_main3libmawk

Run main parts of a script

Usage

#include <libmawk.h>

void libmawk_run_main(mawk_state_t *m);

Overview

The libmawk_run_main() attempts to take and parse the next input record and runs all main parts of the script that matches. If there are multiple full records in the input buffer, the process repeats until the buffer becomes empty or contains a partial record. If there is no full record in the buffer, the call returns with nothing done. The call itself never blocks, but the script may. The input buffer may be filled using the libmawk_append_input() call.

Argument m is a libmawk context previously returned by libmawk_initialize() or libmawk_initialize_stage3().

Releases

Unchanged in 4 releases since Debian 10 (Buster).

  1. 10–13

From libmawk1t64 1.0.4-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.