{"id":20381720,"url":"https://github.com/jacob-c-smith/stack","last_synced_at":"2026-05-29T06:31:47.066Z","repository":{"id":149625250,"uuid":"536468556","full_name":"Jacob-C-Smith/stack","owner":"Jacob-C-Smith","description":"A tested LIFO data structure implementation","archived":false,"fork":false,"pushed_at":"2024-07-26T02:50:48.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T22:36:20.317Z","etag":null,"topics":["c","stack","tested","thread-safe"],"latest_commit_sha":null,"homepage":"https://g10.app/status/#abstract_data_i","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jacob-C-Smith.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":"2022-09-14T07:46:20.000Z","updated_at":"2024-07-26T02:50:51.000Z","dependencies_parsed_at":"2023-07-25T03:45:57.348Z","dependency_job_id":"ea25f3ee-e340-436a-9da2-9ff2d16a022e","html_url":"https://github.com/Jacob-C-Smith/stack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jacob-C-Smith/stack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jacob-C-Smith%2Fstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jacob-C-Smith%2Fstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jacob-C-Smith%2Fstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jacob-C-Smith%2Fstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jacob-C-Smith","download_url":"https://codeload.github.com/Jacob-C-Smith/stack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jacob-C-Smith%2Fstack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33640627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"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","stack","tested","thread-safe"],"created_at":"2024-11-15T02:15:05.234Z","updated_at":"2026-05-29T06:31:47.043Z","avatar_url":"https://github.com/Jacob-C-Smith.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stack\n[![CMake](https://github.com/Jacob-C-Smith/stack/actions/workflows/cmake.yml/badge.svg)](https://github.com/Jacob-C-Smith/stack/actions/workflows/cmake.yml)\n\n**Dependencies:**\\\n[![sync](https://github.com/Jacob-C-Smith/sync/actions/workflows/cmake.yml/badge.svg)](https://github.com/Jacob-C-Smith/sync/actions/workflows/cmake.yml)\n[![CMake](https://github.com/Jacob-C-Smith/log/actions/workflows/cmake.yml/badge.svg)](https://github.com/Jacob-C-Smith/log/actions/workflows/cmake.yml)\n\n\n A minimal, thread-safe stack implementation written in C. \n \n \u003e 0 [Try it](#try-it)\n \u003e \n \u003e 1 [Download](#download)\n \u003e\n \u003e 2 [Build](#build)\n \u003e\n \u003e 3 [Example](#example)\n \u003e\n \u003e\u003e 3.1 [Example output](#example-output)\n \u003e\n \u003e 4 [Tester](#tester)\n \u003e\n \u003e 5 [Definitions](#definitions)\n \u003e\n \u003e\u003e 5.1 [Type definitions](#type-definitions)\n \u003e\u003e\n \u003e\u003e 5.2 [Function definitions](#function-definitions)\n \n## Try it\n[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/Jacob-C-Smith/log?quickstart=1)\n\nWait for a few moments, then click the play button on the bottom of the window. This will run the example program.\n\n ## Download\n To download stack, execute the following command\n ```bash\n $ git clone https://github.com/Jacob-C-Smith/stack\n ```\n ## Build\n To build on UNIX like machines, execute the following commands in the same directory\n ```bash\n $ cd stack\n $ cmake .\n $ make\n ```\n  This will build the example program, the tester program, and dynamic / shared libraries\n\n  To build stack for Windows machines, open the base directory in Visual Studio, and build your desired target(s)\n ## Example\n To run the example program, execute this command\n ```\n $ ./stack_example\n ```\n ### Example output\n\n [Source](main.c)\n## Tester\n To run the tester program, execute this command after building\n ```\n $ ./stack_test\n ```\n [Source](stack_test.c)\n \n [Tester output](test_output.txt)\n\n ## Definitions\n ### Type definitions\n ```c\n typedef struct stack_s stack;\n ```\n ### Function definitions\n ```c \n// Constructors \nint stack_construct ( const stack **const pp_stack, size_t size );\n\n// Mutators\nint stack_push ( stack *const p_stack, const void *const        p_value );\nint stack_pop  ( stack *const p_stack, const void *      *const ret );\n\n// Accessors\nint stack_peek ( const stack *const p_stack, const void **const ret );\n\n// Destructors\nint stack_destroy ( stack **const pp_stack );\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacob-c-smith%2Fstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacob-c-smith%2Fstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacob-c-smith%2Fstack/lists"}