sp.h is the standard library that C deserves
The article introduces sp.h, a new standard library for C designed to improve its usability and portability. Unlike traditional libraries, sp.h does not rely on libc and aims to provide a more efficient interface for modern programming needs. The library emphasizes direct interaction with system calls and eliminates outdated practices like null-terminated strings.
- ▪sp.h is a 15,000 line, single header library written in plain C99.
- ▪The library is designed to be ultra portable and does not depend on libc except when necessary.
- ▪It aims to modernize C programming by addressing issues with traditional memory management and string handling.
Opening excerpt (first ~120 words) tap to expand
Over the past year, I’ve been working on fixing C by giving it a high quality, ultra portable standard library. It is not a simple wrapper on top of libc; it doesn’t depend on libc except when required to by the platform. To my knowledge, there is nothing like it.The library is called sp.h1. It’s a 15,000 line, single header library written in plain C99. You can find the source code on GitHub, which includes the library itself, lots of example programs, and half a dozen baseball libraries2 which extend the core. If you prefer to read a few examples and look through the source, head to GitHub first.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at Spader.