{"id":25820328,"url":"https://github.com/surajkareppagol/libcsv","last_synced_at":"2026-02-16T10:38:23.377Z","repository":{"id":270596234,"uuid":"910790862","full_name":"surajkareppagol/libcsv","owner":"surajkareppagol","description":"📊 Yet another CSV library.","archived":false,"fork":false,"pushed_at":"2025-02-19T11:53:49.000Z","size":54,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T18:41:30.382Z","etag":null,"topics":["csv-import","csv-library","csv-parser"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/surajkareppagol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-01T12:44:24.000Z","updated_at":"2025-02-19T11:53:52.000Z","dependencies_parsed_at":"2025-02-28T09:54:00.558Z","dependency_job_id":"70d93494-aa9c-45c4-8e79-9f9b0c1f905d","html_url":"https://github.com/surajkareppagol/libcsv","commit_stats":null,"previous_names":["surajkareppagol/libcsv"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/surajkareppagol/libcsv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surajkareppagol%2Flibcsv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surajkareppagol%2Flibcsv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surajkareppagol%2Flibcsv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surajkareppagol%2Flibcsv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/surajkareppagol","download_url":"https://codeload.github.com/surajkareppagol/libcsv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/surajkareppagol%2Flibcsv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29506240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csv-import","csv-library","csv-parser"],"created_at":"2025-02-28T09:53:40.967Z","updated_at":"2026-02-16T10:38:23.319Z","avatar_url":"https://github.com/surajkareppagol.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📊 libcsv\n\nYet another library for CSV files.\n\n## ⚙️ Build Executable\n\nBuild and run the example.\n\n```sh\nmake\n```\n\n```sh\nlibcsv [options...]\n```\n\n```sh\nlibcsv -i users.csv -a \"user,2002,admin,new\" -p -o output.csv\n```\n\n## 📦️ Build Static Library\n\n```sh\nmake lib\n```\n\nThe static library `libcsv.a` is created under `lib/`. Build a application\nusing this static library with the following command.\n\n```sh\ngcc -I./include csv_application.c -L./lib/ -lcsv\n```\n\n## ➡️ Available Options\n\n| Option | Description        | Arguments                         |\n| ------ | ------------------ | --------------------------------- |\n| -i     | Import CSV         | CSV file name required            |\n| -a     | Append row of data | String of data separated by comma |\n| -r     | Remove row of data | Index number (0 - Max items)      |\n| -p     | Print CSV data     | None                              |\n| -o     | Export to CSV file | File name                         |\n| -h     | Print help         | None                              |\n\n## ⚙️ API\n\n### 1. CSV_IMPORT\n\nPass csv filename and the address of metadata structure. If file found it will\nextract the data and also fill up the metadata structure. Returns the pointer\nto the csv list.\n\n```c\nCSV_LIST *csv_import(char *csv_file, CSV_METADATA **metadata);\n```\n\n### 2. CSV_EXPORT\n\nPass csv list and optional csv filename, also the metadata structure. A csv\nfile will be created and the data from CSV list will be populated.\n\n```c\nvoid csv_export(CSV_LIST *csv_list, CSV_METADATA *metadata, char *output);\n```\n\n### 3. CSV_FIELD\n\nPass field string, CSV list and metadata structure. If field found it will\nreturn the pointer to the type block.\n\n```c\nvoid *csv_field(char *field, CSV_LIST *csv_list, CSV_METADATA *metadata);\n```\n\n### 4. CSV_COLUMN\n\nSimilar to `csv_field()`, but accepts column number (starts from 0).\n\n```c\nvoid *csv_column(unsigned int column, CSV_LIST *csv_list, CSV_METADATA *metadata);\n```\n\n### 5. CSV_ADD_ROW\n\nAdd new row of data to CSV list.\n\n```c\nvoid csv_add_row(char *data, CSV_LIST *csv_list, CSV_METADATA *metadata);\n```\n\n### 6. CSV_REMOVE_ROW\n\nRemove a row of data from CSV list.\n\n```c\nvoid csv_remove_row(unsigned int row, CSV_LIST *csv_list, CSV_METADATA *metadata);\n```\n\n### 7. CSV_SHOW\n\nPrint raw CSV data to the `stdout`.\n\n```c\nvoid csv_show(CSV_LIST *csv_list, CSV_METADATA *metadata);\n```\n\n### 8. CSV_CLEAR\n\nFree memory used by CSV structure.\n\n```c\nvoid csv_clear(CSV_LIST *csv_list, CSV_METADATA *metadata);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurajkareppagol%2Flibcsv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsurajkareppagol%2Flibcsv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsurajkareppagol%2Flibcsv/lists"}