{"id":18495826,"url":"https://github.com/sunjay/dsarray","last_synced_at":"2025-05-14T03:15:21.320Z","repository":{"id":72478431,"uuid":"347840537","full_name":"sunjay/dsarray","owner":"sunjay","description":"A dynamically-sized array in C (work in progress)","archived":false,"fork":false,"pushed_at":"2022-04-23T19:20:15.000Z","size":66,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-25T17:09:54.288Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunjay.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":"2021-03-15T04:51:13.000Z","updated_at":"2022-08-20T05:36:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"95328b96-6a6f-49b7-9074-beffa94b39aa","html_url":"https://github.com/sunjay/dsarray","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/sunjay%2Fdsarray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunjay%2Fdsarray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunjay%2Fdsarray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunjay%2Fdsarray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunjay","download_url":"https://codeload.github.com/sunjay/dsarray/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239212561,"owners_count":19600830,"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":[],"created_at":"2024-11-06T13:26:25.327Z","updated_at":"2025-02-16T23:41:41.769Z","avatar_url":"https://github.com/sunjay.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dsarray - Dynamically-sized Array in C\n\n[![CI](https://github.com/sunjay/dsarray/actions/workflows/dsarray.yml/badge.svg)](https://github.com/sunjay/dsarray/actions/workflows/dsarray.yml)\n\nThis is an implementation of a dynamically sized array in C. It uses `void *` to simulate\n\"polymorphism\" so you do not need to redefine the array every time you need to use it for a\ndifferent type. To make this work, you need to pass in the size of the type you are storing when\nyou create the array.\n\n```c\ndsarray items;\ndsarray_init(\u0026items, sizeof(int));\n\n// Push an item into the array\nint value = 3;\ndsarray_push(\u0026items, \u0026value);\n\n// Get the item from the array and print it\nint *item = dsarray_get(\u0026items, 0);\nprintf(\"%d\\n\", *item);\n```\n\n## Building\n\nRun `make` from the project's root directory.\n\nThis will generate `build/libdsarray.a` and `build/libdsarray.so`.\n\n## Running Tests\n\nRun `make test` from the project's root directory.\n\nThis will run the unit tests in the `tests` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunjay%2Fdsarray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunjay%2Fdsarray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunjay%2Fdsarray/lists"}