A small C library for using csv files
#include "CsvLib.h" // Header
int main()
{
/*
Simple Example for reading csv, changing the delimiter and
writing it into a new file
*/
char *file_content = NULL; // Buffer for string
CsvData *csv_data = read_csv("./tests/100.csv", ',', file_content);
csv_data->delimiter = ';';
write_csv("./tests/new.csv", csv_data); // rewriing csv
free_csv_data(csv_data); // freeing the csv_data
free(file_content); // freeing the buffer
file_content = NULL;
return 0;
}
Here are a few of the features of this Library...
Features:
- It is very lightweight
- It is fast
- Can parse any csv file
NOTE: This project is not finished yet so it does not have that many features!!!!!
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
This has no license so feel free to take it :)
Project Link: https://github.com/ferdinandlb/CsvLib