{"id":19150411,"url":"https://github.com/coffeeeatnight/dynamic-array_implementation","last_synced_at":"2025-02-22T20:45:28.016Z","repository":{"id":210604167,"uuid":"726816604","full_name":"CoffeeeAtNight/Dynamic-Array_Implementation","owner":"CoffeeeAtNight","description":"Custom dynamic array in C: Features automatic resizing and optimized memory usage, demonstrating core principles of low-level data structure implementation.","archived":false,"fork":false,"pushed_at":"2023-12-04T00:26:20.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-03T18:14:52.208Z","etag":null,"topics":[],"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/CoffeeeAtNight.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-03T13:45:42.000Z","updated_at":"2023-12-07T09:55:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"cd6366f6-0214-4235-a4f1-02c66a74e219","html_url":"https://github.com/CoffeeeAtNight/Dynamic-Array_Implementation","commit_stats":null,"previous_names":["coffeeeatnight/dynamic-array"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoffeeeAtNight%2FDynamic-Array_Implementation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoffeeeAtNight%2FDynamic-Array_Implementation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoffeeeAtNight%2FDynamic-Array_Implementation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CoffeeeAtNight%2FDynamic-Array_Implementation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CoffeeeAtNight","download_url":"https://codeload.github.com/CoffeeeAtNight/Dynamic-Array_Implementation/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240236198,"owners_count":19769571,"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-09T08:11:53.633Z","updated_at":"2025-02-22T20:45:27.997Z","avatar_url":"https://github.com/CoffeeeAtNight.png","language":"C","readme":"# Dynamic Array in C\n\n## Overview\n\nThis project implements a dynamic array in C, a fundamental data structure used in various applications. The dynamic array allows for efficient resizing, both expansion and contraction, to accommodate varying numbers of elements. This implementation demonstrates key programming concepts in C, including memory management, pointers, and data structure design.\n\n## Features\n\n- **Initialization**: Initializes a dynamic array with a specified initial capacity.\n- **Appending**: Adds elements to the end of the array, resizing if necessary.\n- **Removal**: Removes an element from a specified position in the array.\n- **Automatic Resizing**: Dynamically increases and decreases the capacity of the array based on the number of elements.\n- **Memory Management**: Efficiently allocates and frees memory to optimize resource usage.\n\n## How to Compile and Run\n\nTo compile and run this project, you need a C compiler like GCC. Follow these steps:\n\n1. Clone the repository or download the source code.\n2. Navigate to the directory containing the source files.\n3. Compile the program using a C compiler, e.g., `gcc -o dynamic_array main.c`.\n4. Run the executable: `./dynamic_array`.\n\n```c\n// Initialize the Dynamic Array \nDynamicArray myArray;\ninitDynamicArray(\u0026myArray, initialCapacity);\n\n// Append elements\nappendToDynArr(\u0026myArray, element);\n\n// Remove element\nremoveFromDynArr(\u0026myArray, position);\n\n// Free the allocated memory when done\nfreeDynArr(\u0026myArray);\n```\n\n![image](https://github.com/CoffeeeAtNight/Dynamic-Array_Implementation/assets/98992091/d8b29c15-c979-4bd7-abe2-1f5f0676668d)\n\n\n## License\n\nSpecify the license under which this project is made available. Common choices include MIT, GPL, Apache 2.0, etc.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoffeeeatnight%2Fdynamic-array_implementation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoffeeeatnight%2Fdynamic-array_implementation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoffeeeatnight%2Fdynamic-array_implementation/lists"}