Skip to content

ferdinandmsu/CsvLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


CsvLib

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;
}


Features

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!!!!!

Built With

Contributing

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This has no license so feel free to take it :)

Contact

Project Link: https://github.com/ferdinandlb/CsvLib

About

C Library for working with csv files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages