Y
yogesh
char TCGI::x2c(char *what)
{
register char digit;
digit = (char) ((what[0] >= 'A' ? ((what[0] & 0xdf) - 'A')+10 :
(what[0] - '0')));
digit *= (char) 16;
digit += (char) ((what[1] >= 'A' ? ((what[1] & 0xdf) - 'A')+10 :
(what[1] - '0')));
return(digit);
}
what the operation is used for , what it will return the value ,
{
register char digit;
digit = (char) ((what[0] >= 'A' ? ((what[0] & 0xdf) - 'A')+10 :
(what[0] - '0')));
digit *= (char) 16;
digit += (char) ((what[1] >= 'A' ? ((what[1] & 0xdf) - 'A')+10 :
(what[1] - '0')));
return(digit);
}
what the operation is used for , what it will return the value ,