How can I edit a string with double quotes and backslashes like this one
"i love \"programming\""
and print like this
i love "programming"
I found this online but no luck:
for (int i = 0; i < lineLength; i++)
{
if (line[i] == '\\')
{
line[j++] = line[i++];
line[j++] = line[i];
if (line[i] == '\0')
break;
}
else if (line[i] != '"')
line[j++] = line[i];
}
line[j] = '\0';