{"id":18939546,"url":"https://github.com/anishsinha-io/cslice","last_synced_at":"2025-08-01T17:10:04.571Z","repository":{"id":112921214,"uuid":"459435873","full_name":"anishsinha-io/cslice","owner":"anishsinha-io","description":"slices for everyone. SLAVA UKRAINI 🇺🇦.","archived":false,"fork":false,"pushed_at":"2022-02-18T06:11:13.000Z","size":12,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-25T09:39:38.279Z","etag":null,"topics":["c"],"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/anishsinha-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-02-15T05:08:45.000Z","updated_at":"2023-02-21T03:50:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c634af5-ca42-4228-9bc0-714c3b7d45d1","html_url":"https://github.com/anishsinha-io/cslice","commit_stats":null,"previous_names":["anishsinha-io/cslice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/anishsinha-io/cslice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anishsinha-io%2Fcslice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anishsinha-io%2Fcslice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anishsinha-io%2Fcslice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anishsinha-io%2Fcslice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anishsinha-io","download_url":"https://codeload.github.com/anishsinha-io/cslice/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anishsinha-io%2Fcslice/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268265832,"owners_count":24222526,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["c"],"created_at":"2024-11-08T12:17:58.529Z","updated_at":"2025-08-01T17:10:04.505Z","avatar_url":"https://github.com/anishsinha-io.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"### C Slices\n\nThis repository implements Golang-like slices in C. The library is pretty light on abstractions and in general is quite\nefficient.\n\nFeel free to make pull requests to improve the library or to fix any bugs. However, I would ask that you at least write\nsome tests before you submit one.\n\n### Usage\n\nMake sure you have CMake and GNU Make installed first!\n\nTo use this library, you will need to let you compiler know to look for it. This is accomplished by the following\nprocedures:\n\n#### Installation\n\n1. `git clone` this repository into any directory you want.\n2. `cd` into that directory\n3. run `mkdir build` to create a build directory\n4. `cd` into the build directory\n5. run `cmake ..`\n6. run `make`\n7. run `sudo make install`, and then type in your password\n\nThe above steps will install the library's public headers into `/usr/local/include` and the binary\ninto `/usr/local/lib` (on *nix machines).\n\n#### Including\n\nTo include this library in a program, you will need to link it. For CMake projects, this is accomplished by the\nfollowing steps:\n\n1. make sure that `/usr/local/include` is included using an `include_directories` directories,\n   e.g. `include_directories(/usr/local/include)`\n2. make sure that your `link_directories` directive includes `/usr/local/lib`, e.g. `link_directories(/usr/local/lib)`\n3. finally, make sure you actually *link* this library with the `target_link_libraries` directive,\n   e.g. `target_link_libraries(\u003cyour_project\u003e PUBLIC \"cslice\" ...\u003cother libraries\u003e)`\n4. Now you should be able to `#include \u003ccslice.h\u003e` in your program and use the functionality.\n\nPlease star this repository if you find it to be useful.\n\n-A \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanishsinha-io%2Fcslice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanishsinha-io%2Fcslice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanishsinha-io%2Fcslice/lists"}