LWL v1.0.0 - Reference Manual


extern lwlh_t lwl_alloc

(void)

Allocates a new LWL handle.

Documentation

Allocates a new LWL handle. Allocates and initializes a new LWL handle. The intial log file used is stdout and the initial level is LWL_PRI_DEBUG. To change them and other attributes, uses lwl_set_attributes() function.
Returns:
the newly allocated LWL handle in case of success.
NULL in case of failure. Default values are: - LWL_PRI_DEBUG for LWL_TAG_LEVEL - LWL_OPT_NONE for LWL_TAG_OPTIONS - NULL for LWL_TAG_PREFIX - stdout for LWL_TAG_FILE - NULL for all LWL_TAG_FILE_xxx
Preconditions:
nothing
See Also:
lwl_free()

Alphabetic index


LWL v1.0.0 Reference Manual Generation date: Wed Nov 13 15:07:15 CET 2002