{"id":21107502,"url":"https://github.com/cjhdev/circular_buffer","last_synced_at":"2026-03-16T20:34:07.855Z","repository":{"id":148216375,"uuid":"102208637","full_name":"cjhdev/circular_buffer","owner":"cjhdev","description":"Circular Buffer","archived":false,"fork":false,"pushed_at":"2017-09-03T00:14:40.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T09:23:46.864Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Makefile","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/cjhdev.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":"2017-09-02T16:17:48.000Z","updated_at":"2017-09-03T00:13:58.000Z","dependencies_parsed_at":"2023-05-19T11:00:14.671Z","dependency_job_id":null,"html_url":"https://github.com/cjhdev/circular_buffer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cjhdev/circular_buffer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fcircular_buffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fcircular_buffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fcircular_buffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fcircular_buffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cjhdev","download_url":"https://codeload.github.com/cjhdev/circular_buffer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cjhdev%2Fcircular_buffer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28120539,"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-12-29T02:00:07.021Z","response_time":58,"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-20T00:40:17.091Z","updated_at":"2025-12-29T20:04:47.500Z","avatar_url":"https://github.com/cjhdev.png","language":"Makefile","readme":"Circular Buffer\n===========================\n\n[![Build Status](https://travis-ci.org/cjhdev/circular_buffer.svg?branch=master)](https://travis-ci.org/cjhdev/circular_buffer)\n\n- I am using C in an OO style so it is possible to have more than one instance\n- My interface names line up with the requirements but these are probably too generic for practical use\n- Buffer capacity is a compile time setting that defaults to 42 elements\n    - Redefine at compile time like this `-DCIRCULAR_BUFFER_SIZE=123`\n- I am using Cmocka to exercise the code\n- C source files are in `/src`\n    - [circular_buffer.c](src/circular_buffer.c)\n- C header files are in `/include`\n    - [circular_buffer.h](include/circular_buffer.h)\n- Test files are in `/test`\n    - [tc_circular_buffer.c](test/tc_circular_buffer.c)\n    - [makefile](test/makefile)\n- Source has been linted with PCLINT usinng the configuration contained within `/pclint`\n\n## Running the Tests\n\nYou need:\n\n- GCC\n- Make\n- Gcov (if you want a coverage report)\n\nFrom project root:\n\n~~~\ncd test\nmake\ncd -\n~~~\n\nTo see test coverage:\n\n~~~\ncd test\nmake coverage\ncd -\n~~~\n\n## License\n\nCircular Buffer has an MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjhdev%2Fcircular_buffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcjhdev%2Fcircular_buffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcjhdev%2Fcircular_buffer/lists"}