A simple csv function in c language