Top 13 C header-only Projects
📐 Pushing the boundaries of simplicity
Fast, header-only polygon triangulationProject mention: TTF Parser, managed to triangulate simple polygons. Next will be inner holes. | reddit.com/r/C_Programming | 2022-04-06
Have you looked into mapbox's earcut hpp library? https://github.com/mapbox/earcut.hpp
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
Full-blown preprocessor metaprogrammingProject mention: Metalang99: Full-blown preprocessor metaprogramming for C/C++ | reddit.com/r/cpp_instruments | 2022-08-09
Single header asymmetric stackful cross-platform coroutine library in pure C.
My variant of the C Template Library (by rurban)Project mention: How different is C++ from C? Contrasting simple Unix SORT programs | reddit.com/r/cpp | 2022-05-13
But the most common that I know of is this one: https://github.com/tylov/STC. There's also this one mentioned above https://rurban.github.io/ctl/
A robust header-only unit testing framework for C and C++ programming language. Support function mocking, memory leak detection, crash report.
Single-file Parsing Expression Grammars (PEG) runtime engine for C
Download talent.io’s Tech Salary Report. Median salaries, most in-demand technologies, state of the remote work... all you need to know your worth on the market by tech recruitment platform talent.io
A simple and clean, glsl like, math (linear algebra) header only library for C.
Painless Linux sandboxing APIProject mention: Show HN: Porting OpenBSD Pledge() to Linux | news.ycombinator.com | 2022-07-14
>.. So how do we get it that simple on Linux? I believe the answer is to find someone with enough free time to figure out how to use SECCOMP BPF to implement pledge.
> There's been a few devs in the past who've tried this. I'm not going to name names, because most of these projects were never completed.
I guess I am also one of those. I am giving it a shot with my WIP sandboxing library, which aims at making sandboxing easier for applications in general: https://github.com/quitesimpleorg/exile.h. It also aims to fix the "file system blind spot" mentioned in the article, by using Landlock and Namespaces/chroot.
Though I am calling my attempt "vows" instead of "pledge" to avoid misunderstandings. At the the end of the day, pledge() cannot be pledge() on Linux, due to limitations which the article also mentions.
Nevertheless, as has already been mentioned in this thread, as all attempts, mine also suffers from the fact that one has to keep up constantly with kernel releases and all software must recompiled from time to time against new library releases. This is a suboptimal situation. Secondly, there systems calls with currently cannot be filtered with seccomp BPF, such as openat2() and clone3() and so on.
Therefore, at this time you cannot have pledge() on Linux properly. So I am putting it on hold until deep argument inspection lands.
Overall, my experience led me to believe in order to have true, partical pledge() on Linux, it must be implemented in the kernel ultimately.
Header only codepage 437 unicode lookup table.Project mention: Easy minigames to put i c text game? | reddit.com/r/C_Programming | 2022-09-02
If you want to use DOS characters in Unicode, here's a header-only library which does that: https://github.com/Journeyman-dev/cp437.h
Library for parsing command line arguments easily. Like golang flag module.Project mention: Parse command line arguments easily | reddit.com/r/u_glazzzkoff | 2022-02-15
Repository link: https://github.com/DieTime/c-flags
Header-only library of macros to assist with reading and writing big/little endian values. (by raddari)Project mention: [Code Review] radian - a header-only library to help with endianness when reading/writing | reddit.com/r/cprogramming | 2022-03-14
A collection of public domain single-file custom allocators for C/C++
C header-only related posts
How different is C++ from C? Contrasting simple Unix SORT programs
3 projects | reddit.com/r/cpp | 13 May 2022
STL in C
2 projects | news.ycombinator.com | 4 Feb 2022
How bad of an idea would it be to make a commercial game with raylib?
2 projects | reddit.com/r/raylib | 8 Jul 2021
ZPL: C99 single header-only multi-purpose toolkit
1 project | reddit.com/r/C_Programming | 20 Mar 2021
What are some of the best open-source header-only projects in C? This list will help you:
Are you hiring? Post a new remote job listing for free.