Skip to content

Latest commit

 

History

23 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo strbuf

StrBuf is a lightweight C library for working with mutable strings. It was created as a personal project and includes a small set of string operations that I commonly need in C programs.

The library has not been extensively tested and may not be suitable for production-critical applications.

strbuf_t owns and manages its underlying memory, allowing operations such as append, insert, remove, replace, and resize.

StrBuf can also be used together with strview_t. While strbuf_t is mutable and owns the string memory, strview_t provides a non-owning, read-only view for operations such as search, comparison, parsing, and slicing.

Both libraries can therefore be used together depending on whether the string needs to be modified or only inspected.

cc -DDEBUG -std=gnu11 -Wall -Wpedantic -Wextra -Werror -g -o strbuf main.c strbuf.c && ./strbuf

About

String buffer to handle mutable c string

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages