Forum Discussion
Altera_Forum
Honored Contributor
16 years agoSmallC and sscanf
Hi folks- In my NIOS2 project I started using sscanf() to parse text strings. The linker complains that sscanf is not found. Research tells me turn off the SmallC option on the nios2-elf-gcc c...
Altera_Forum
Honored Contributor
16 years agoActually I would generally avoid using any of the scanf family of functions. They are very difficult to use properly - ie verifying all input and without leaving the code open to expliots.
Use strtoul() and friends to parse numbers and str* (but not strtok) for stings.