Skip to content

Module: error

Synopsis:

#include <core/error.h>

Retrieve or set last global error.

Note

The error variable is global and not thread safe nor reentrant.

Functions

error

Return the last error string.

const char *
error(void)

errorf

Set the global error using printf format string. Also return false for convenience.

bool
errorf(const char *fmt, ...)

verrorf

Similar to errorf but using a va_list argument instead.

bool
verrorf(const char *fmt, va_list ap)