Write a function, named "convert", that takes a single argument, a string (char pointer/array). C language
Write a function, named "convert", that takes a single argument, a string (char pointer/array). The function should modify the string so that all single quote characters are replaced with double quotes. 2 input cases: 1 #include <stdio.h> 2 #include <string.h> 3 void convert(char * string); 4 5 char string[] = "'abc'def\"'"; 6 printf("\nStart = %s\n", string); 7 convert(string); 8 printf("End = %s\n", string); 9 assert(strcmp(string, "\"abc\"def\"\"") == 0); 10 INPUT OF THE TEST CASE 1 #include <stdio.h> 2 #include <string.h> 3 void convert(char * string); 4 5 char string[] = "My name is 'Josh'! \"Scare Quotes\""; 6 printf("\nStart = %s\n", string); 7 convert(string); 8 printf("End = %s\n", string); 9 assert(strcmp(string, "My name is \"Josh\"! \"Scare Quotes\"") == 0); Al up code is my try and complete on it, please Write it as a code to be more clear