Skip to content

OSS-Cosmic/bstr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modified Better String Library

This is an inspired version of Paul Hsieh's Better String Library, Better String Library, sds

bstr is a string library for c designated to augmenting the limited libc string handling. Strings are handled similarly to rust where a fat pointer is used to hold the string and slices can be passed around to operate/inspect a string buffer. The only form of allocation in this library is with bstr so any bstr declared has to be ended with a bstrFree().

A c style string/bstr can be converted to a slice. A slice is a base pointer + len. This works similar to a std::span.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published