{"id":25244848,"url":"https://github.com/slayers-git/csl","last_synced_at":"2025-04-05T21:15:51.737Z","repository":{"id":275697470,"uuid":"500747558","full_name":"slayers-git/csl","owner":"slayers-git","description":"A collection of handy headers for C","archived":false,"fork":false,"pushed_at":"2022-09-15T05:08:51.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T01:41:25.307Z","etag":null,"topics":["c","header-only","miscellaneous","vector"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slayers-git.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":"2022-06-07T08:09:03.000Z","updated_at":"2022-06-11T13:40:55.000Z","dependencies_parsed_at":"2025-02-04T04:41:38.339Z","dependency_job_id":null,"html_url":"https://github.com/slayers-git/csl","commit_stats":null,"previous_names":["slayers-git/csl"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slayers-git%2Fcsl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slayers-git%2Fcsl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slayers-git%2Fcsl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slayers-git%2Fcsl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slayers-git","download_url":"https://codeload.github.com/slayers-git/csl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399885,"owners_count":20932880,"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":["c","header-only","miscellaneous","vector"],"created_at":"2025-02-12T01:37:06.996Z","updated_at":"2025-04-05T21:15:51.717Z","avatar_url":"https://github.com/slayers-git.png","language":"C","readme":"# CSL\n\n**CSL** or **C**e**S**sentia**L**s is a collection of headers that I find nice to have in my daily C coding routine.\n\nCurrently, this collection includes a simple header-only vector implementation - pvector, and some useful C header files located in the `cthings` directory.\n\n## pvector\n\npvector is a header-only implementation of a dynamically-resizable array, which is, in C++ terms, called a vector.\n\nTo create a vector, simply type:\n\n```c\nint   *integer_vector = csl_pvector (int); /* this will create a vector storage for integers */\nvoid **pointer_vector = csl_pvector (void *); /* this will create a vector storage for pointers */\n```\n\nOther functions can be found in the `pvector/pvector.h` header file.\n\n## cthings\n\ncthings directory is comprised of the miscellaneous, independent from each other header files you can find useful for coding in C. As for now this includes:\n\n- `platform.h` - a header file to determine the host architecture, OS and the compiler used to assemble the program.\n- `standard.h` - a header file to determine the compiler's C/C++ standard.\n- `attribute.h` - a header file to aid cross-compiler attribute problem.\n- `begin_code.h` - a header file to help enclose C code in, while saving compatibility with C++ (extern \"C\").\n- `c89.h` - a header file for c99 support in older C standards.\n- `die.h` - a simple die () and vdie () implementation.\n- `itoa.h` - a simple POSIX itoa implementation.\n- `hash.h` - a collection of string hash functions.\n- `strings.h` - a header file to add some functions from POSIX's `strings.h` header file to non-POSIX platforms (`str[n]casecmp ()`, `str[n]dup ()` functions specifically).\n- `getline.h` - a slightly modified version of POSIX's `getdelim ()` and `getline ()` functions.\n\n## Installing\n\nAll sources in csl library are headers. So installing them is simply a matter of:\n\n```bash\n$ cmake .\n# make install\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslayers-git%2Fcsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslayers-git%2Fcsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslayers-git%2Fcsl/lists"}