Creation

To create a context, use fz_new_context:


\begin{lstlisting}
/*
fz_new_context: Allocate context containing global state....
...*alloc, const fz_locks_context *locks, unsigned int max_store);
\end{lstlisting}

For example, a simple, single threaded program using the standard allocator can just use:


\begin{lstlisting}
fz_context *ctx = fz_new_context(NULL, NULL, FZ_STORE_UNLIMITED);
\end{lstlisting}