{"id":13731091,"url":"https://github.com/wernsey/miscsrc","last_synced_at":"2025-05-08T03:32:50.032Z","repository":{"id":9101080,"uuid":"10880534","full_name":"wernsey/miscsrc","owner":"wernsey","description":"My collection of miscellaneous source code","archived":false,"fork":false,"pushed_at":"2025-04-16T16:17:44.000Z","size":217,"stargazers_count":32,"open_issues_count":0,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-17T00:19:02.622Z","etag":null,"topics":["algorithms","c","csv","csv-parser","file-formats","garbage-collection","ini","ini-parser","json","json-api"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wernsey.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,"zenodo":null}},"created_at":"2013-06-23T08:15:50.000Z","updated_at":"2025-04-16T16:17:48.000Z","dependencies_parsed_at":"2024-11-14T21:33:06.024Z","dependency_job_id":"90110083-b590-4a4e-8d26-af9ad52d8dc3","html_url":"https://github.com/wernsey/miscsrc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wernsey%2Fmiscsrc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wernsey%2Fmiscsrc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wernsey%2Fmiscsrc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wernsey%2Fmiscsrc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wernsey","download_url":"https://codeload.github.com/wernsey/miscsrc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252994395,"owners_count":21837414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["algorithms","c","csv","csv-parser","file-formats","garbage-collection","ini","ini-parser","json","json-api"],"created_at":"2024-08-03T02:01:23.757Z","updated_at":"2025-05-08T03:32:50.025Z","avatar_url":"https://github.com/wernsey.png","language":"C","readme":"Miscsrc\n=======\n\n![GitHub](https://img.shields.io/github/license/wernsey/miscsrc)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/wernsey/miscsrc)\n![GitHub repo file count](https://img.shields.io/github/directory-file-count/wernsey/miscsrc)\n\nA library of miscellaneous C functions I've written over time.\n\n| Header | Code | Description |\n| --- | --- | --- |\n|[json.h](json.h)|[json.c](json.c)| A [JSON][] parser and serializer. It also supports [JSON5][] - see below.|\n|[csv.h](csv.h)|[csv.c](csv.c)| A set of functions to read, write and manipulate [Comma Separated Values][CSV] (CSV) files; They keep entire file file memory for manipulation\n|[csvstrm.h](csvstrm.h) | no | A streaming [CSV][] parser that reads a CSV file row-by-row.|\n|[strmtok.h](strmtok.h)| no | A string interning library.|\n|[sintern.h](sintern.h)| no | A stream tokenizing library.|\n|[ini.h](ini.h) | [ini.c](ini.c)| A parser for [INI][] configuration files|\n|[eval.h](eval.h)|[eval.c](eval.c)| A mathematical expression evaluator|\n|[wav.h](wav.h)|[wav.c](wav.c)| Functions to load and store [WAV][] files|\n|[gc.h](gc.h)|[gc.c](gc.c)| A mark-and-sweep garbage collector|\n|[refcnt.h](refcnt.h)|[refcnt.c](refcnt.c)| A reference counting garbage collector|\n|[regex.h](regex.h)|[regex.c](regex.c)| A simple regular expression pattern matcher|\n|[list.h](list.h)|[list.c](list.c)| A generic linked list implementation with extra helper functions|\n|[hash.h](hash.h)|[hash.c](hash.c)| A simple hash table implementation|\n|[simil.h](simil.h)|[simil.c](simil.c)| A function that compares the _similarity_ of two strings|\n|[getarg.h](getarg.h)|[getarg.c](getarg.c)| An alternative to `getopt()` called `getarg()` for platforms without _getopt()_ (such as for WIN32)|\n|[utils.h](utils.h)|[utils.c](utils.c)| A couple of utility functions.|\n\nIt is a collection of C code that I've implemented over the course of several years\nand used, tested and reused in several of my hobby projects.\n\nThe [JSON parser](json.c) can parse JSON5, but will always serialize to\nstrict [JSON][]. JSON5 support is enabled by default, but can be disabled\nthrough a preprocessor directive.\n\n[JSON]:  https://www.json.org\n[JSON5]: https://json5.org/\n[CSV]: https://en.wikipedia.org/wiki/Comma-separated_values\n[INI]: https://en.wikipedia.org/wiki/INI_file\n[WAV]: https://en.wikipedia.org/wiki/WAV\n\n-----------------------------------------\n\nThese sources are provided under the terms of the unlicense:\n\n```\nThis is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any\nmeans.\n\nIn jurisdictions that recognize copyright laws, the author or authors\nof this software dedicate any and all copyright interest in the\nsoftware to the public domain. We make this dedication for the benefit\nof the public at large and to the detriment of our heirs and\nsuccessors. We intend this dedication to be an overt act of\nrelinquishment in perpetuity of all present and future rights to this\nsoftware under copyright law.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n```\n\nFor more information, please refer to \u003chttp://unlicense.org/\u003e\n","funding_links":[],"categories":["Libraries"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwernsey%2Fmiscsrc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwernsey%2Fmiscsrc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwernsey%2Fmiscsrc/lists"}