CK_ULONG  htoi(char *x)
htoi(const char *x)
CK_ULONG  htoi(char *x){    CK_ULONG value = 0;    while (*x) {	if ((*x >= '0') && (*x <= '9')) {	    value = (value << 4) | (unsigned)(*x - '0');	} else if ((*x >= 'a') && (*x <= 'f')) {	    value = (value << 4) | (unsigned)(*x - 'a');	} else if ((*x >= 'A') && (*x <= 'F')) {	    value = (value << 4) | (unsigned)(*x - 'A');	} else {	    break;	}    }    return value;}