.\" Copyright 2009 Tibor Palinkas (mawk@inno.bme.hu) .\" .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" .TH LIBMAWK_INITIALIZE 3libmawk 2009-08-10 "libmawk" "libmawk manual" .SH NAME libmawk_initialize \- create a new libmawk context .SH SYNOPSIS .nf .B #include .sp .BI "mawk_state_t *libmawk_initialize(int " s ", char *" argv[] ); .fi .sp .SH DESCRIPTION The .BR 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. .SH "RETURN VALUE" A pointer to a new libmawk context or NULL on error. .SH "SEE ALSO" .BR libmawk_initialize_stage (3libmawk), .BR libmawk_uninitialize (3libmawk),