DOKK / manpages / debian 10 / libmawk1 / libmawk_initialize.3libmawk.en
LIBMAWK_INITIALIZE(3libmawk) libmawk manual LIBMAWK_INITIALIZE(3libmawk)

libmawk_initialize - create a new libmawk context

#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.

libmawk_initialize_stage(3libmawk), libmawk_uninitialize(3libmawk),

2009-08-10 libmawk