Working toward a safer, well-defined, and modern alternative to traditional C standard library components. Powered by Rust, built for C.
The developers bringing memory safety to C.
Loading contributors from GitHub...
stdio.h vs ns.hWhy upgrade your standard library?
| Feature | <stdio.h> / <string.h> |
ns.h (NextStd) |
|---|---|---|
| Type Safety | None. Relies on developer memory. | Automatic compile-time routing via C11 _Generic. |
| Format Specifiers | Required (%d, %s, %f). Segfaults if mismatched. |
Not required. Just pass the variable. |
| String Memory | Null-terminated (char*). O(N) length, overflow risk. |
Small String Optimization (SSO). Zero heap fragmentation. |
| Input Handling | scanf leaves dangling newlines and crashes on bad types. |
ns_read safely defaults to 0 on invalid input. |
| Backend | Legacy C code. | Modern Rust. Mathematically memory-safe. |
Have questions or want to contribute? Reach out!