-
Notifications
You must be signed in to change notification settings - Fork 7
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
sscanf does not properly check content after int match. #4
Comments
That's how it is in LPmud, so that's how it has to be in DGD to be compatible. Only for If you do care about the part that comes after, do it like this: |
That's cool. I guess this particular feature of sscanf should be noted in the doc. On Viking Mud our doc, which I believe comes from DGD, states in kfun/sscanf: "Other characters must be matched exactly." |
Good point. I'll update the documentation. |
Updated in 55a6bc6. |
sscanf("1 hellp", "%d hello",d);
This one matches and extracts the 1.
The text was updated successfully, but these errors were encountered: