{"id":21095028,"url":"https://github.com/zoroxide/dynamic-stack-ds","last_synced_at":"2026-04-27T17:01:33.194Z","repository":{"id":243403072,"uuid":"812329582","full_name":"zoroxide/dynamic-stack-ds","owner":"zoroxide","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-08T18:53:41.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-31T05:00:09.858Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoroxide.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":"2024-06-08T15:26:47.000Z","updated_at":"2024-06-08T18:53:43.000Z","dependencies_parsed_at":"2024-11-19T22:37:40.379Z","dependency_job_id":null,"html_url":"https://github.com/zoroxide/dynamic-stack-ds","commit_stats":null,"previous_names":["zoroxide/dynamic-stack-ds"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zoroxide/dynamic-stack-ds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoroxide%2Fdynamic-stack-ds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoroxide%2Fdynamic-stack-ds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoroxide%2Fdynamic-stack-ds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoroxide%2Fdynamic-stack-ds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoroxide","download_url":"https://codeload.github.com/zoroxide/dynamic-stack-ds/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoroxide%2Fdynamic-stack-ds/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32345816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"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":[],"created_at":"2024-11-19T22:22:04.210Z","updated_at":"2026-04-27T17:01:33.159Z","avatar_url":"https://github.com/zoroxide.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dynamic Stacke Data Structure using C\n\n### initializing\n\n - ``` c++\n    #include \u003cstdio.h\u003e\n    #include \"dynamic_stack.h\"\n\n    int main() {\n    StackStatus_t status;\n\n    // Create a stack with a maximum size of 5\n    struct Stack_t *myStack = CreateStack(5, \u0026status);\n    if (status != STACK_OK) {\n        printf(\"Failed to create stack\\n\");\n        return -1;\n    }\n   \n    return 0;\n   }\n   ```\n### Playground\n\n - ``` c++\n    // Push elements onto the stack\n    for (int i = 0; i \u003c 5; ++i) {\n        int data = i;\n        status = PushStack(myStack, \u0026data);\n        if (status != STACK_OK) {\n            printf(\"Failed to push data onto stack\\n\");\n            return -1;\n        }\n    }\n\n    if (status == STACK_FULL) {\n        printf(\"Stack is full\\n\");\n    }\n\n    // Pop elements from the stack\n    for (int i = 0; i \u003c 5; ++i) {\n        const int *data = (int *)PopStack(myStack, \u0026status);\n        if (status == STACK_OK) {\n            printf(\"Popped data: %d\\n\", *data);\n        } else {\n            printf(\"Failed to pop data from stack\\n\");\n        }\n    }\n\n    // Check if the stack is empty\n    if (StackIsEmpty(myStack)) {\n        printf(\"Stack is empty\\n\");\n    }\n\n    // Destroy the stack\n    DestroyStack(myStack, \u0026status);\n\n    if (status != STACK_OK) {\n        printf(\"Failed to destroy stack\\n\");\n        return -1;\n    }\n   ``` ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoroxide%2Fdynamic-stack-ds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoroxide%2Fdynamic-stack-ds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoroxide%2Fdynamic-stack-ds/lists"}