Hello, I am trying to use the function "strtodb" to convert hex-strings to double bits. I am including <stdlib.h> and <stdio.h>, but the linker complains "Error 140: 'strtodb' undefined; assuming .... ". What could be the problem? Holger
"What could be the problem?"
Maybe your assumption that there exists such a function in the language standard.
What do you even mean by "double bits"?
The closest I know about is strtod() - notice that there is no "b" in the name - that converts a number in ASCII format to a double-precision floating point number.
But I hope you do not hope to use double-precision floating point numbers with a 8051 processor. Have you - by the way - checked the full documentation for the compiler, regarding use of floating point, and the availability of single and double precision?
use the function "strtodb"
You make that sound as if this were some standard function that's always supposed to be available, so you can just use it.
Well, it's not, so if you want to use it, you'll have to provide it yourself.
Either that, or you have to check what the name of the function you're trying to use really is. It might be strtod().