56 struct CHexMap HexMap[22] =
72 boolean firsttime =
true;
75 if (*s ==
'0' && *(s + 1) ==
'x') s += 2;
79 for (i = 0; i < 22; i++)
81 if (*s == HexMap[i].chr)
83 if (!firsttime) result <<= 4;
85 result |= HexMap[
i].value;
99 char *
ftoa(
char *a,
double f,
int precision)
101 long p[] = {0,10,100,1000,10000,100000,1000000,10000000,100000000};
104 long heiltal = (long)f;
105 itoa(heiltal, a, 10);
106 while (*a !=
'\0') a++;
108 long desimal = abs((
long)((f - heiltal) * p[precision]));
109 itoa(desimal, a, 10);
char * ftoa(char *a, double f, int precision)
Copyright 2018(c) Analog Devices, Inc.
uint16_t httoi(char *value)