finish dfRowsToList in C