#Header
#include "co/error.h"
The API is in the co namespace.
#co::error
int error();
void error(int e);
error()returns the current error code.error(e)sets the current error code toe.- Thread-safe.
#co::strerror
const char* strerror(int e);
const char* strerror();
- Returns the description corresponding to
eor the current error code. - Thread-safe.
- The returned string must not be stored for a long time.