libjaylink 0.3.1
Library to access J-Link devices
Loading...
Searching...
No Matches
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.
 
const char * jaylink_strerror_name (int error_code)
 Return the name of a libjaylink error code.
 

Detailed Description

Error handling.

Function Documentation

◆ jaylink_strerror()

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

◆ jaylink_strerror_name()

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