void ctoh(unsigned char n, unsigned char*str){ str[0] = gethex(n >> 4); str[1] = gethex(n);}
char gethex(char tmp){ tmp&=0x0F; (tmp < 10) ? tmp|=0x30 : tmp =(tmp - 9)|0x40; return(tmp);}
E-mail: info@telesys.ru