libbuf is a minimal C library to handle dynamic strings. It is designed in mind to be portable, simple, easy to embed.
It consists of:
You can install a development version using Mercurial
hg clone http://hg.malikania.fr/libbuf
Build using standard POSIX make tools, see INSTALL.md for more details.
make make install
Also have a look into the official README.md file in the repository which may contain additional information and a FAQ.