• strtod()
    Hi, I've got a problem with strtod() from the stdlib and I still don't get it. I cannot find the mistake. Using the example from the online-help void tst_strtod (void) { float f; char s [...
  • strtod()
    Hi, I've got a problem with strtod() from the stdlib and I still don't get it. I cannot find the mistake. Using the example from the online-help void tst_strtod (void) { float f; char s [...
  • strtod return ptr not advanced if converted value =0
    This code has worked for years in C51: ----- CmdParm[CmdCnt / 2] = strtod(ParamBuf, &rPos); // get a number // returns with rPos pointing to the next unconverted char in the ParamBuf if(rPos > ParamBuf...
  • strtod return ptr not advanced if converted value =0
    This code has worked for years in C51: ----- CmdParm[CmdCnt / 2] = strtod(ParamBuf, &rPos); // get a number // returns with rPos pointing to the next unconverted char in the ParamBuf if(rPos > ParamBuf...
  • C51 compiler buggy behaviour?
    Hi, I am trying to read two pins from a c8051f040 controller. Reading the port directly works , but saving the same port value on a variable does not work even though the debugger shows the correct...