{"id":22920389,"url":"https://github.com/mrnazu/monty","last_synced_at":"2025-07-24T00:06:11.773Z","repository":{"id":267304016,"uuid":"618393538","full_name":"mrnazu/monty","owner":"mrnazu","description":"C, Stacks, Queues - LIFO, FIFO","archived":false,"fork":false,"pushed_at":"2024-12-09T14:55:21.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T13:43:29.235Z","etag":null,"topics":["c","c-programming","dsa-algorithm","fifo","lifo","queues","stacks"],"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/mrnazu.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-03-24T11:22:44.000Z","updated_at":"2024-12-09T14:56:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"a9259c60-ef7f-43e3-b65f-9ae707ac2e7c","html_url":"https://github.com/mrnazu/monty","commit_stats":null,"previous_names":["mrnazu/monty"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mrnazu/monty","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnazu%2Fmonty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnazu%2Fmonty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnazu%2Fmonty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnazu%2Fmonty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrnazu","download_url":"https://codeload.github.com/mrnazu/monty/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnazu%2Fmonty/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266770672,"owners_count":23981603,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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-programming","dsa-algorithm","fifo","lifo","queues","stacks"],"created_at":"2024-12-14T07:15:29.574Z","updated_at":"2025-07-24T00:06:11.709Z","avatar_url":"https://github.com/mrnazu.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 0x19. C - Stacks, Queues - LIFO, FIFO\n\nDon’t forget to include them in your header file.\n```c\n/**\n * struct stack_s - doubly linked list representation of a stack (or queue)\n * @n: integer\n * @prev: points to the previous element of the stack (or queue)\n * @next: points to the next element of the stack (or queue)\n *\n * Description: doubly linked list node structure\n * for stack, queues, LIFO, FIFO\n */\ntypedef struct stack_s\n{\n        int n;\n        struct stack_s *prev;\n        struct stack_s *next;\n} stack_t;\n\n/**\n * struct instruction_s - opcode and its function\n * @opcode: the opcode\n * @f: function to handle the opcode\n *\n * Description: opcode and its function\n * for stack, queues, LIFO, FIFO\n */\ntypedef struct instruction_s\n{\n        char *opcode;\n        void (*f)(stack_t **stack, unsigned int line_number);\n} instruction_t;\n```\n## Compilation \u0026 Output\nYour code will be compiled this way:\n```shell\n$ gcc -Wall -Werror -Wextra -pedantic -std=c89 *.c -o monty\n```\n- Any output must be printed on stdout\n- Any error message must be printed on stderr\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrnazu%2Fmonty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrnazu%2Fmonty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrnazu%2Fmonty/lists"}