{"id":32444519,"url":"https://github.com/kadealicious/dynamic-c-array","last_synced_at":"2025-10-26T03:46:05.355Z","repository":{"id":190532913,"uuid":"682839926","full_name":"kadealicious/Dynamic-C-Array","owner":"kadealicious","description":"Create dynamically-allocated arrays of any data type in the C language.","archived":false,"fork":false,"pushed_at":"2023-12-14T08:13:46.000Z","size":1076,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-12-14T09:30:53.305Z","etag":null,"topics":["c","c-memory-management","dynamic-array","memcpy","void-pointers"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kadealicious.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-08-25T02:09:06.000Z","updated_at":"2023-08-25T02:12:32.000Z","dependencies_parsed_at":"2023-12-14T09:41:17.377Z","dependency_job_id":null,"html_url":"https://github.com/kadealicious/Dynamic-C-Array","commit_stats":null,"previous_names":["kadealicious/dynamic-c-array"],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/kadealicious/Dynamic-C-Array","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadealicious%2FDynamic-C-Array","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadealicious%2FDynamic-C-Array/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadealicious%2FDynamic-C-Array/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadealicious%2FDynamic-C-Array/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kadealicious","download_url":"https://codeload.github.com/kadealicious/Dynamic-C-Array/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kadealicious%2FDynamic-C-Array/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281055244,"owners_count":26436349,"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-10-26T02:00:06.575Z","response_time":61,"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","c-memory-management","dynamic-array","memcpy","void-pointers"],"created_at":"2025-10-26T03:46:01.031Z","updated_at":"2025-10-26T03:46:05.345Z","avatar_url":"https://github.com/kadealicious.png","language":"C","readme":"# Dynamic Array Library\n\nThe Dynamic Array Library is a C library that provides a dynamic array data structure, allowing you to work with resizable arrays in your C projects. It offers simple and intuitive functions to manage dynamic arrays efficiently.\n\n## Features\n\n- Dynamically resizable array data structure.\n- Efficient insertion, removal, and replacement of elements.\n- Ability to access elements by index.\n- Automatic memory management for dynamic resizing.\n- Simple initialization and freeing of dynamic arrays.\n\n## Getting Started\n\nTo use the Dynamic Array Library in your project, follow these steps:\n\n1. **Clone the Repository:** Clone this repository to your local machine.\n\n2. **Include the Library:** Copy the `dynamicarray.h` and `dynamicarray.c` files from the `src` directory into your project directory.\n\n3. **Compile:** Compile with `make` command to get output on build directory.\n\n4. **Use the Library:** Include the `dynamicarray.h` header in your source files where you want to use the library's functionality. See the library's functions and documentation to understand how to work with dynamic arrays.\n\n## Usage Example\n\nHere's a simple example of using the Dynamic Array Library to create a resizable array of integers:\n\n```c\n#include \"dynamicarray.h\"\n\nint main() {\n    daArray intArray = {};    // Make sure to zero-initialize all daArray objects for consistent behavior.\n    daInit(\u0026intArray, 10, sizeof(int), true); // Initialize with 10 elements, each sizeof(int) bytes.\n\n    int value = 42;\n    daPushBack(\u0026intArray, \u0026value);\n\n    int retrievedValue = *(int*)daGet(\u0026intArray, 0);\n    printf(\"Retrieved value: %d\\n\", retrievedValue);\n\n    daFree(\u0026intArray); // Free the dynamic array's memory.\n\n    return 0;\n}\n```\n\n## Documentation\n\nFor detailed information about the library's functions, parameters, and usage, refer to the [header file](./src/da.h).\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions for improvements, please create a GitHub issue or submit a pull request.\n\n\n---\n\nHappy coding with the Dynamic Array Library! If you have any questions or feedback, don't hesitate to get in touch.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkadealicious%2Fdynamic-c-array","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkadealicious%2Fdynamic-c-array","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkadealicious%2Fdynamic-c-array/lists"}