Safe garbage collected strings for C, inspired by Go
BSD-3-CLAUSE License
Safe garbage collected strings for C, inspired by Go.
gcc
or clang
.gc
package in many Linux distros).make
and pkg-config
.-1
should never be returned to indicate a problem or that something is not found. Return a struct instead.String*
should be supported by every function that can take a string.Error*
type can be nil
to indicate no error. Otherwise, it should contain info about the error.const char* ErrorToCharPtr(Error* err);
. It's verbose, but clear.make
sudo make install
CXX
cxx run
cmake -B build -G Ninja -D CMAKE_INSTALL_PREFIX=/usr
ninja -C build
sudo ninja -C build install