A trivial CSV line could be spitted using string split function. But some lines could have \", e.g.
\"
\"good,morning\", 100, 300, \"1998,5,3\"
Chapter 4 of The Practice of Programming gave both C and C++ implementations of the CSV parser.