Skip to content

fix: can't parse "12, 34, 56“ using "%d,%d,%d"#11

Open
royqh1979 wants to merge 3 commits intojoshburnett:masterfrom
royqh1979:master
Open

fix: can't parse "12, 34, 56“ using "%d,%d,%d"#11
royqh1979 wants to merge 3 commits intojoshburnett:masterfrom
royqh1979:master

Conversation

@royqh1979
Copy link

In c , sscanf can parse "12, 34, 56“ using "%d,%d,%d"
`
#include <stdio.h>
#include <string.h>

int main(){
int a,b,c;

sscanf(" 12, 34, 56","%d,%d,%d",&a,&b,&c) ;

printf("%d,%d,%d\n",a,b,c);

return 0;

}
`

But now scanf can't do that.
This patch fixes it.

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

Successfully merging this pull request may close these issues.

1 participant