/* This function will transform for string to hex. */
int msh_strtohex(char *strvalue)
/* This function will transform for string to hex. */
int msh_strtohex(char *strvalue)
{
    char c = 0;
    int value = 0;
    strvalue += 2;
    forstrloop(strvalue)
    {
        value *= 16;
        c = tolower(*strvalue);
        value += isdigit(c) ? c - '0' : c - 'a' + 10;
    }
    return value;
}