On Ubuntu, Mint, and relatives, `strlcpy` and `strlcat` are available in the `libbsd-dev` package. Run
sudo apt-get install libbsd-dev
This will install the libraries, header files, and man pages.
To use the functions from C code, add the line
#include
to your files, and add `-lbsd` , or the more portable `$(pkg-config --libs libbsd)` , to your `gcc` command line to link the library.