Snaipe/libcsptr
Smart pointers for the (GNU) C programming language observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4254
- days_rel: n/a
- days_push: 1400
- n_releases_24m: 0
Adoption not part of the score
1729 stars · 144 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
libcsptr is a small C library that brings smart pointer constructs (unique_ptr, shared_ptr, and a smart type attribute) to GNU C. It supports destructors and custom metadata on allocation, and works on Linux, macOS, and Windows via GCC-compatible compilers.
Use cases
- automatic memory management in C
- avoid memory leaks in C programs
- use unique_ptr and shared_ptr in C
- attach destructors to C allocations
- RAII-style cleanup in C code
When to choose
- you write GNU C with GCC or Clang and want automatic cleanup
- you need shared or unique pointer semantics without switching to C++
- you want a small MIT-licensed memory management library
When to avoid
- you use compilers without GNU extensions (MSVC)
- you need actively developed features or long-term support
- you can use C++ and its native smart pointers instead
Facets
library · maturity maintenance
developer-tools programming-languages developer-tools windows cpp c smart-pointers memory-management gnu-c raii cmake linux macos
2 sources
- readme: https://github.com/Snaipe/libcsptr · fetched 2026-08-28 · 42a51a05d450
- homepage: https://snai.pe/c/c-smart-pointers/ · fetched 2026-08-29 · 13d04ca15538
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Snaipe/libcsptr | main | 23 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem