Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int
- main()
- {
- int quote = 0, oc = EOF, c;
- while ((c = getchar()) != EOF) {
- if (c == '"' && c == oc)
- quote = !quote;
- oc = c;
- putchar((c != ',' || quote) ? c : '|');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement