fork download
  1. #include <stdio.h>
  2.  
  3. void remove_quotations(char *str)
  4. {
  5. int j = 0;
  6. for (int i = 0; str[i]; i++) {
  7. if (str[i] != '\'') {
  8. str[j++] = str[i];
  9. }
  10. }
  11. str[j] = 0;
  12. }
  13.  
  14.  
  15.  
  16. int main(void) {
  17. char buffer[] = "'1357', 'name', 'topic', '2'";
  18. remove_quotations(buffer);
  19. puts(buffer);
  20. // your code goes here
  21. return 0;
  22. }
  23.  
Success #stdin #stdout 0s 10320KB
stdin
Standard input is empty
stdout
1357, name, topic, 2