LIBMAWK_RUN_MAIN(3libmawk) | libmawk manual | LIBMAWK_RUN_MAIN(3libmawk) |
libmawk_run_main - run main parts of a script
#include <libmawk.h> void libmawk_run_main(mawk_state_t *m);
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().
libmawk_initialize_stage(3libmawk), libmawk_initialize(3libmawk), libmawk_append_input(3libmawk),
2009-08-10 | libmawk |