用C解析CSV文件 [英] Parse CSV file in C

查看:24
本文介绍了用C解析CSV文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个库可以用来解析 C 中的 CSV 文件.我在 Linux 系统上.我知道 this 但它是用 C++ 写的,我需要用 C 写的东西.不想如果有人已经完成了调试和测试,请经历调试和测试的痛苦.

Is there a library I can use to parse CSV files in C. I am on a Linux system. I know about this but it is in C++ and I need something in C. Don't want to go through the pain of debugging and testing if someone has already done it.

推荐答案

看看 libcs​​v,这是一个用 ANSI C89 编写的 CSV 库.

Take a look at libcsv, which is a CSV library written in ANSI C89.

这篇关于用C解析CSV文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆