LL_INIT(5ICD)

NAME
ll_init, ll_quit - initialize and terminate the LDMC system

SYNOPSIS

#include <stdldmc.h>

ll_init (name, opts)
char *name;
struct ll_ldmc_opts * opts;

ll_quit ()

PARAMETERS
should be the name of the invoking program. is a pointer to a ll_ldmc_opts options structure. Currently, there are no supported options, and this parameter must be NULL.

DESCRIPTION
Ll_init must be called once before any other function of the LDMC library. Apart from some internal set-up actions, this function carries out some tasks that are of importance to the application program. A description of these tasks follows. Ll_init will: Set up a signal handler for the following signals if they where not ignored: SIGHUP, SIGINT, SIGILL, SIGBUS, SIGSEGV, SIGTERM. The signal handler first sets the value of ll_errno to LLE_SIG and calls ll_error and finally it calls ll_exit with exit value 1. Init the DMI library by calling dmInit (5ICD). Obtain the technology information for the current project.

Ll_quit must be called once after any other function of the LDMC library and is automatically called by ll_exit. It will do some cleaning up. In particular, ll_quit will: Issue an error message and call me (5ICD) for each unfinished cell. Terminate the interaction with the DMI by calling dmQuit (5ICD).

SEE ALSO
ldmcintro(5ICD), ll_exit(5ICD)