Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Results of sscanf is undefined #60

Open
wluker opened this issue Nov 8, 2020 · 0 comments
Open

Results of sscanf is undefined #60

wluker opened this issue Nov 8, 2020 · 0 comments

Comments

@wluker
Copy link

wluker commented Nov 8, 2020

At

ret = sscanf(readbuf, "BBPLL:%*d DAC:%d T2:%*d T1:%*d TF:%*d TXSAMP:%d", &dacrate, &txrate);
it looks like sscanf has more format specifications than pointers.

The sscanf man page reads "If the number of conversion specifications in format exceeds the number of pointer arguments, the results are undefined."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant