C Convert List String To Array Cpp