/* This function return a pointer to a string that contains the message of error.  */
const char* rt_strerror(rt_err_t error)
/* This function return a pointer to a string that contains the message of error.  */
const char* rt_strerror(rt_err_t error)
{
    int i = 0;
    if (error < 0)
        error = -error;
    for (i = 0; i < sizeof(rt_errno_strs) / sizeof(rt_errno_strs[0]); i++)
    {
        if (rt_errno_strs[i].error == error)
            return rt_errno_strs[i].str;
    }
    return "EUNKNOW";
}