libjaylink  0.2.0
Library to access J-Link devices
Functions
error.c File Reference

Error handling. More...

#include "libjaylink.h"

Functions

const char * jaylink_strerror (int error_code)
 Return a human-readable description of a libjaylink error code. More...
 
const char * jaylink_strerror_name (int error_code)
 Return the name of a libjaylink error code. More...
 

Detailed Description

Error handling.

Function Documentation

const char* jaylink_strerror ( int  error_code)

Return a human-readable description of a libjaylink error code.

Parameters
[in]error_codeA libjaylink error code. See jaylink_error for valid values.
Returns
A string which describes the given error code, or the string unknown error if the error code is not known. The string is null-terminated and must not be free'd by the caller.
Since
0.1.0
const char* jaylink_strerror_name ( int  error_code)

Return the name of a libjaylink error code.

Parameters
[in]error_codeA libjaylink error code. See jaylink_error for valid values.
Returns
A string which contains the name for the given error code, or the string unknown error code if the error code is not known. The string is null-terminated and must not be free'd by the caller.
Since
0.1.0