{"id":16811707,"url":"https://github.com/theoludwig/libcproject","last_synced_at":"2026-02-14T19:03:46.451Z","repository":{"id":171402290,"uuid":"585658703","full_name":"theoludwig/libcproject","owner":"theoludwig","description":"C static library for learning purposes. Implement useful functions/data structures while being easier to use than `libc` (C standard library).","archived":false,"fork":false,"pushed_at":"2024-10-08T06:50:24.000Z","size":200,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-10-11T06:27:58.897Z","etag":null,"topics":["c-programming-language","gcc","libc","low-level"],"latest_commit_sha":null,"homepage":"https://libcproject.vercel.app/","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/theoludwig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2023-01-05T18:32:00.000Z","updated_at":"2025-03-14T20:13:25.000Z","dependencies_parsed_at":"2024-01-30T01:38:10.091Z","dependency_job_id":"0913202d-8558-4cd4-8d60-68f9851f2906","html_url":"https://github.com/theoludwig/libcproject","commit_stats":null,"previous_names":["theoludwig/libcproject"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/theoludwig/libcproject","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoludwig%2Flibcproject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoludwig%2Flibcproject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoludwig%2Flibcproject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoludwig%2Flibcproject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theoludwig","download_url":"https://codeload.github.com/theoludwig/libcproject/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theoludwig%2Flibcproject/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29452603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T15:52:44.973Z","status":"ssl_error","status_checked_at":"2026-02-14T15:52:11.208Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-programming-language","gcc","libc","low-level"],"created_at":"2024-10-13T10:19:32.242Z","updated_at":"2026-02-14T19:03:46.435Z","avatar_url":"https://github.com/theoludwig.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003elibcproject\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eC static library easier to use than `libc` (C standard library).\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"./CONTRIBUTING.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat\" alt=\"Contributing\" /\u003e\u003c/a\u003e\n  \u003ca href=\"./LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/licence-MIT-blue.svg\" alt=\"Licence MIT\"/\u003e\u003c/a\u003e\n  \u003ca href=\"./CODE_OF_CONDUCT.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg\" alt=\"Contributor Covenant\" /\u003e\u003c/a\u003e\n  \u003cbr /\u003e\n  \u003ca href=\"https://github.com/theoludwig/libcproject/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/theoludwig/libcproject/actions/workflows/ci.yml/badge.svg?branch=develop\" alt=\"CI\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://conventionalcommits.org\"\u003e\u003cimg src=\"https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg\" alt=\"Conventional Commits\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/semantic-release/semantic-release\"\u003e\u003cimg src=\"https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\" alt=\"semantic-release\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## About\n\n**libcproject** is a C static library for learning purposes. It tries to implement useful functions/data structures while being easier to use than `libc` (C standard library) as much as possible.\n\nC is a low-level programming language and we often end up reinventing the wheel as the C standard library (`libc`) is quite small and in my humble opinion, not well designed.\n\n**libcproject** solve this by providing common functions or data structures (`hash_map`, `array_list`, `linked_list`, `queue`, `stack`, etc.), we might need in our C projects.\n\n[Online documentation](https://libcproject.vercel.app/).\n\n## Prerequisites\n\n- [GNU coreutils](https://www.gnu.org/software/coreutils/)\n- [GNU binutils](https://www.gnu.org/software/binutils/)\n- [GNU gcc](https://gcc.gnu.org/)\n- [GNU make](https://www.gnu.org/software/make/)\n- [ClangFormat](https://clang.llvm.org/docs/ClangFormat.html)\n- [Doxygen](https://www.doxygen.nl/)\n\nFor example on GNU/Linux Ubuntu:\n\n```sh\n# Install Build Tools\nsudo apt install build-essential gcc make clang-format\n\n# Install Documentation Tools\nsudo apt install doxygen doxygen-gui doxygen-doc graphviz\n```\n\n## Usage\n\n```sh\nmake # to compile\nmake run # to run main\nmake test # to run unit tests\nmake lint # to lint the code\nmake documentation # to generate the documentation\nmake clean # to clean up\n\nnm ./build/libcproject.a # to see the symbols\n```\n\nSteps to create a new C project that uses `libcproject`:\n\n### Step 1: Create a new project\n\n```sh\nmkdir my-project\ncd my-project\n```\n\n### Step 2: Install and Compile `libcproject` in the project\n\n```sh\n# Clone the repository\ngit clone git@github.com:theoludwig/libcproject.git\n\n# Go to libcproject directory\ncd libcproject\n\n# Compile the library\nmake\n```\n\n### Step 3: Create a new C file\n\n```sh\ncd ..\ntouch main.c\n```\n\n```cpp\n#include \u003cstdio.h\u003e\n#include \u003cstdlib.h\u003e\n\n#include \"libcproject/libcproject.h\"\n\nint main() {\n  string_t string = \"Hello, world!\"; // `string_t` is a typedef from `libcproject`\n  printf(\"%s\\n\", string);\n  printf(\"string_length = %ld\\n\", string_get_length(string)); // `string_get_length` is a function from `libcproject`\n  return EXIT_SUCCESS;\n}\n```\n\n### Step 4: Compile your project and link it with the library\n\n```sh\ngcc -o ./main ./main.c -L. -l:./libcproject/build/libcproject.a\n```\n\n## 💡 Contributing\n\nAnyone can help to improve the project, submit a Feature Request, a bug report or even correct a simple spelling mistake.\n\nThe steps to contribute can be found in the [CONTRIBUTING.md](./CONTRIBUTING.md) file.\n\n## 📄 License\n\n[MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheoludwig%2Flibcproject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheoludwig%2Flibcproject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheoludwig%2Flibcproject/lists"}