DC_CONTEXT_NEW(3) | Library Functions Manual | DC_CONTEXT_NEW(3) |
dc_context_new
—
#include
<libdivecomputer/context.h>
dc_status_t
dc_context_new
(dc_context_t
**context);
On success, the context must be freed with
dc_context_free(3). You may
configure the context with
dc_context_set_loglevel(3)
and
dc_context_set_logfunc(3).
This is highly recommended as the default logging behaviour of
dc_context_new
depends upon compile-time values.
DC_STATUS_OK
on success, in which case
context is filled in, or an error code on failure.
January 5, 2017 | NetBSD 10.0 |