Thanks for reporting the issue. Confirmed this issue and the fix is already in Newlib upstream. We can add Newlib configuration option -enable-newlib-io-c99-formats to support this feature. However the side effect is the increased code size for below app:
Thanks for reporting the issue. Confirmed this issue and the fix is already in Newlib upstream. We can add Newlib configuration option -enable- newlib- io-c99- formats to support this feature. However the side effect is the increased code size for below app:
terguo01@ terry-pc01: case$ cat m.c
#include<stdio.h>
int a, b, c, d;
int
main ()
{
char *p = "11 22 33 44";
sscanf(p, "%d %d %d %d", &a, &b, &c, &d);
printf ("%d/%d/%d/%d\n", a, b, c, d);
return 0;
}
My small experiment shows code size is increased from 42840 bytes to 45824 bytes, about 7% increment for cortex-m3.