Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Am I missing something here but where's the itoa() function in the Mbed cloud compiler? I did try adding #include "stdlib.h" and #include <cstdlib> without luck.
#include "mbed.h" DigitalOut myled(LED1); int main() { int i; char *s; char fmtbuf[32]; i = 100; s = itoa(i, fmtbuf, 16); printf("i in hex is %s\n", s); while(1) { myled = 1; wait(0.2); myled = 0; wait(0.2); } }Compiler reports:
Identifier "itoa" is undefined (E20)