1LIBMAWK_INITIALIZE(3libmawk) libmawk manual LIBMAWK_INITIALIZE(3libmawk)
2
3
4
6 libmawk_initialize - create a new libmawk context
7
9 #include <libmawk.h>
10
11 mawk_state_t *libmawk_initialize(int s, char *argv[]);
12
13
15 The libmawk_initialize() function returns a pointer to a newly created
16 libmawk context. Any amount of libmawk contexts can live in parallel in
17 an application. Arguments are the same as for a command line mawk ses‐
18 sion. Scripts are loaded (either from command line or from files using
19 -f), variables are set (with -v), special options are set (with -W),
20 etc.
21
23 A pointer to a new libmawk context or NULL on error.
24
26 libmawk_initialize_stage(3libmawk), libmawk_uninitialize(3libmawk),
27
28
29
30libmawk 2009-08-10 LIBMAWK_INITIALIZE(3libmawk)