Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main ()
- {
- char sentence []="<info>come on,10,5.5</info>";
- char a[10];
- int b;
- float c;
- sscanf (sentence,"<info>%[^','],%d,%f</info>",a, &b, &c);
- printf("%s %d %f", a, b, c);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement