Skip to content

zb1ndev/cstring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

cstring

A lightweight, stb-style library for working with strings in C. It provides a string_t structure and abstracts many standard library string operations.

Features

  • Header-only (just include it and define the implementation macro)
  • Safe creation from literals, sections, or formatted strings
  • Append support (with optional destroy to avoid leaks)
  • Automatic cleanup with string_drop

Installation

Simply define CSTRING_IMPLEMENTATION and includen cstring.h into your project -

#define CSTRING_IMPLEMENTATION
#include "cstring.h"

About

A Header-Only String Library for C

Topics

Resources

License

Stars

Watchers

Forks

Languages