文件名称:csplit:单个标头C库,轻松处理替换strtok的拆分和处理字符串
文件大小:30KB
文件格式:ZIP
更新时间:2024-04-03 13:29:06
c cross-platform strings split single-header-lib
csplit 单个标头C库,可用于轻松处理C中的拆分字符串和其他字符串操作。 安装 因为csplit是一个单头库,所以您要做的就是将csplit.h文件复制到您的项目中,并将其包含在您要使用它的源文件的顶部。 您可以通过“选项卡中的相应链接或通过如下克隆整个存储库来获取此文件: git clone https://github.com/jwlodek/csplit 然后将csplit.h复制到您的存储库中,添加 # include " csplit.h " 代码顶部的行,并在必要时更新项目的包含路径。 用法 csplit提供的核心功能如下: CSplitError_t csplit (CSplitList_t* list, char * input_str, char * token); 这将根据令牌将输入字符串尽可能多地拆分。 您还可以通过以下方式限制拆分数量: CSplit
【文件预览】:
csplit-master
----csplit.h(19KB)
----examples()
--------exampleFiles()
--------read_configure_example.c(4KB)
--------basic_csplit_example.c(3KB)
--------reading_csv_file.c(3KB)
--------Makefile(1011B)
--------str_processing_example.c(3KB)
----.travis.yml(93B)
----mkdocs.yml(177B)
----LICENSE(1KB)
----README.md(6KB)
----docs()
--------index.md(3KB)
--------functions.md(6KB)
--------scripts()
--------examples.md(9KB)
--------assets()
--------install.md(2KB)
--------about.md(1KB)
----tests()
--------csplit_core_tests.c(12KB)
--------Makefile(147B)
--------initUnitTests.sh(206B)
--------runUnitTests.sh(109B)
----.gitignore(76B)