Tech News
← Back to articles

Yet Another TypeSafe and Generic Programming Candidate for C

read original related products more articles

MisraStdC

A modern C11 library designed to make programming in C less painful and more productive, written in pure C. MisraStdC provides generic containers, string handling, and formatted I/O inspired by higher-level languages while maintaining C's performance and control.

Disclaimer: This library is not related to the MISRA C standard or guidelines. The name "MisraStdC" comes from the author's name, Siddharth Mishra, who is commonly known as "Misra" among friends.

Table of Contents

Features

Cross-platform compatibility : Supports MSVC, GCC, and Clang

: Supports MSVC, GCC, and Clang Type-safe generic containers : Vec(T) : Generic vector with strict type checking Str : String handling (specialized Vec(char) ) Map(K, V) : Generic key-value hash-map storage (WIP) Int : Custom big integer implementation (WIP)

: Rust-style formatted I/O : WriteFmt , ReadFmt : Type-safe formatted standard I/O StrWriteFmt , StrReadFmt : Type-safe formatted string operations

: JSON parsing and serialization

Memory safety with proper initialization and cleanup functions

... continue reading