WeSearch

sp.h is the standard library that C deserves

·7 min read · 0 reactions · 0 comments · 28 views
#programming#c#library#software
TL;DR · WeSearch summary

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.

Key facts
Original article
Spader
Read full at Spader →
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.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from Spader