Forum : ARM
Post Information | Post |
---|---|
December 16, 2009 - 8:15am
|
I'm trying to use sscanf() to parse strings, but the sscanf() functions seems to call scanf() function. When i call the sscanf() function it starts to expect input from keyboard instead of parsing the string supplied as parameter. I'm using other function such as atoi, mktime and many other libc functions and they work as expected. I have not tried to compile any of the e_stdio.a or the other library myself, just using the one supplied with Ride. Best regards, Per |
Hi
It look like a bug in our putchar and small printf library.
This bug can appear depending on the order in which the macro defines are handled.
Some defines are done from the source and some are in the compiler.
And depending on the first define reached the result can be different.
Please first check the result of defining or undefining _REENT_ONLY in the code line just before your sscanf call.
If this does not change the behaviour try to send to support your project it will be easier to find which define is wrong.
Regards
Matloub