{"id":15049496,"url":"https://github.com/cwchentw/clibs","last_synced_at":"2026-01-20T11:32:27.024Z","repository":{"id":77777615,"uuid":"227048522","full_name":"cwchentw/clibs","owner":"cwchentw","description":"Self-contained Utilities for C","archived":false,"fork":false,"pushed_at":"2025-06-09T00:45:40.000Z","size":1199,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-09T01:19:39.380Z","etag":null,"topics":["ansi","ansi-c","c","c-lib","c-library","c11","c89","c99","clibs","minimalist","single-header","single-header-lib","single-header-library","utility-library"],"latest_commit_sha":null,"homepage":"https://cwchentw.github.io/clibs/","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/cwchentw.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":"2019-12-10T06:47:50.000Z","updated_at":"2025-06-09T00:45:45.000Z","dependencies_parsed_at":"2024-09-24T21:20:57.496Z","dependency_job_id":null,"html_url":"https://github.com/cwchentw/clibs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cwchentw/clibs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwchentw%2Fclibs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwchentw%2Fclibs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwchentw%2Fclibs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwchentw%2Fclibs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cwchentw","download_url":"https://codeload.github.com/cwchentw/clibs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwchentw%2Fclibs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28602458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T10:46:13.255Z","status":"ssl_error","status_checked_at":"2026-01-20T10:42:51.865Z","response_time":117,"last_error":"SSL_read: 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":["ansi","ansi-c","c","c-lib","c-library","c11","c89","c99","clibs","minimalist","single-header","single-header-lib","single-header-library","utility-library"],"created_at":"2024-09-24T21:20:54.793Z","updated_at":"2026-01-20T11:32:27.018Z","avatar_url":"https://github.com/cwchentw.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clibs\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Build status](https://ci.appveyor.com/api/projects/status/69a3u5o6wm3itj8w?svg=true)](https://ci.appveyor.com/project/cwchentw/clibs)\n\nSelf-contained utilities for C.\n\nVisit the **clibs** website [here](https://cwchentw.github.io/clibs/html/index.html).  \nVisit the **clibs** repository [here](https://github.com/cwchentw/clibs/).\n\n---\n\n## ⚠️ Warning\n\n**clibs** is still experimental and primarily intended for personal use.  \nThe API may change without notice.\n\n---\n\n## ❓ What is clibs?\n\n**clibs** is a collection of utility code (types, typedefs, macros, functions) used across C programs.  \nIt is self-contained and domain-neutral, designed to be applicable in various contexts.\n\n---\n\n## 🖥️ System Requirements\n\n- A C compiler that supports ANSI C\n- GNU Make (for testing only)\n\n**clibs** is written in ANSI C (C89). However, we have tested it with C89, C99, and C11.  \nYou can use it with either classic or modern C codebases.\n\nWe have successfully compiled and run **clibs** with:\n\n- GCC\n- Clang\n- Visual C++\n- Intel C++ Compiler\n\nWe also test **clibs** on the following Unix or Unix-like systems:\n\n- Ubuntu 20.04 LTS\n- Rocky Linux 8.5\n- openSUSE Leap 15.3\n- FreeBSD 13.0\n\nIt should also work on other Unix-like systems.\n\nAdditionally, we test **clibs** on Windows using [AppVeyor](https://www.appveyor.com/),  \nso it should be compatible with Windows as well.\n\n---\n\n## 📦 How to Use\n\nThe utilities in **clibs** are self-contained, provided either as:\n\n- single-header files, or\n- single-header + single-source file combos.\n\nJust copy the components you need into your C project.\n\nFiles starting with `test_*.c` are for testing purposes and are **not required** for using **clibs**.\n\n---\n\n## 🧰 Available Utilities\n\n- **boolean.h** – Boolean type for C\n- **cio.h**, **cio.c** – Basic input/output\n- **clibs_control_structure.h** – Common control structures\n- **clibs_logging.h** – Logging for C\n- **clibs_math.h** – Basic math operations\n- **clibs_time.h**, **clibs_time.c** – Time utility functions\n- **cstring.h**, **cstring.c** – Utility functions for C strings (`char` arrays)\n- **integer.h** – Fixed-width integer types (*experimental*)\n- **platform.h** – Platform-specific data\n- **print.h**, **print.c** – Console printing function-like macros\n- **term_color.h** – Console color macros\n\nBrowse the **clibs** API documentation [here](https://cwchentw.github.io/clibs/html/index.html).\n\n---\n\n## 📝 License\n\nCopyright © 2019–2021 ByteBard  \nAll code is licensed under the MIT License unless otherwise specified.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwchentw%2Fclibs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcwchentw%2Fclibs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcwchentw%2Fclibs/lists"}