libmawk_initialize3libmawk
Create a new libmawk context
Usage
#include <libmawk.h> mawk_state_t *libmawk_initialize(int s, char *argv[]);
Overview
The libmawk_initialize() function returns a pointer to a newly created libmawk context. Any amount of libmawk contexts can live in parallel in an application. Arguments are the same as for a command line mawk session. Scripts are loaded (either from command line or from files using -f), variables are set (with -v), special options are set (with -W), etc.
Return value
A pointer to a new libmawk context or NULL on error.
Releases
Unchanged in 4 releases since Debian 10 (Buster).