I'm using strsep to parse a csv example input from stdin
Color,Andrew Adamson,284,150,80,82,Kiran Shah,1000,291709845,Adventure|Family|Fantasy,Jim Broadbent,"The Chronicles of Narnia: The Lion, the Witch and the Wardrobe ",286506,1317,Shane Rangi,5,hide and seek|lion|magic|professor|snow,http://www.imdb.com/title/tt0363771/?ref_=fn_tt_tt_
now once i start parsing using strsep(null,",")
whats the best way to handle the special cases where I want to get all this "The Chronicles of Narnia: The Lion, the Witch and the Wardrobe " as one string but it has the ","(comma) in it i know the fields it will happen is only in the movie name but not all names start with the " before them some are just normal CSV any help or guidance would be great i also don't know how to handle large numbers that might have a comma in them ?
// special case "run,fly,jump"
tokholder = strsep(NULL, ", \n");//gets first token of the line
strcpy(ptrtemp->movie_title, tokholder);