Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
19. Sep 2011
Thare are these functions:
int ctoi(char source)
{ /* Converts a character 0-9 to its equivalent integer value */
if((source >= '0') && (source <= '9'))
return (source - '0');
return(source - 'A' + 10);
}
char itoc(int source)
Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
18. Sep 2011
Could you help translate this:
for (i = 0; i < temp_length; i += 2)
{
if(temp == 'X') {
strcpy(symbol->errtxt, "Invalid position of X in Telepen data");
return ZERROR_INVALID_DATA;
}
if(temp == 'X') {