#include <libmawk.h> mawk_state_t *libmawk_initialize(int s, char *argv);
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.
A pointer to a new libmawk context or NULL on error.