Check buffer.h
file and read comments to know what you can use and how it works.
Just include it on you file as always #include <buffer.h>
to import necessary symbols. You can install using clib
package manager:
$ clib install gioyik/buffer-libc