I'm working on a C function for writing into a CSV file. The problem I am running into is that some of my entries require a comma in the text, which is seperating the test into multiple cells.
For example:
FILE *fp;
fp = fopen(filename,'w+');
fprintf(fp, "red, yellow, blue");
The desired in this case would be cells of "red,yellow","blue" instead of "red" , "yellow", "blue". I've seen others mention there needs to be use of double quotes, but it does't seem to work with fprintf.Any idea how to get this working?