lash_init


[ Synopsis | Description | Return values | Diagnostics | See also | Back to core package documentation ]

Synopsis

#include "lash.h"

int lash_init(void);

Description

Initializes the package and performs some internal consistency checks.

Return values

If the function proceeds successfully, it returns 0. Otherwise, it returns -1 and sets lash_errno.

Diagnostics

LASH_ERR_ALREADY
The package is already initialized.
LASH_ERR_BAD_ARCH
Bad architecture. This error results from unadapted type definitions in the file lash-types.h. It can be corrected by updating the content of this file and then recompiling the package.
LASH_ERR_IN_USE
Objects already in use. This error indicates an internal inconsistency.
LASH_ERR_LOGFILE
Cannot create the logfile. (This file is a debugging aid; it is not created during normal use of the package).

See also

lash_end

[ Synopsis | Description | Return values | Diagnostics | See also | Back to core package documentation ]