Hello All
PART=TM4C123GH6PGE
Is there a way to convert string to float? I tried the following:
... #include <stdlib.h>
#include "utils/ustdlib.h" ... int main{ ... char buf[30]="3.2";
value = atof(buf); UARTprintf("%s\n%f\n",buf,value);
value = strtof(buf); UARTprintf("%s\n%f\n",buf,value);
... }
but I get an error while compiling:
/usr/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7e-m/softfp/libc.a(lib_a-sbrkr.o): In function `_sbrk_r': sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk' make: *** [gcc/main.axf] Error 1
Thanks in advance.