mco_strerror

Returns a string describing the error code.

Prototype

    const char *mco_strerror(
        /* IN */ mco_err_t err
    );

Arguments

err
The error code.

Description

This function returns a static, human-readable description of the given status or error code, including its symbolic name and a brief explanation.

This function is part of the Tracing Framework C API.

Return Codes

A pointer to a static null-terminated string that describes the given error code err.

Example

    ...
    fprintf(stderr, "ERROR: %s (MCO_RET = %d : %s)\n", msg, rc, mco_strerror(rc));
    ...

Files

Header file:
mco.h
Source file:
mcostrerror.c
Library:
libmcotrace.a