clens

Library providing compatibility functions to port OpenBSD code to other OSes

brewmacoslinux
Try with needOr install directly
Source

About

Library to help port code from OpenBSD to other operating systems

Commands

clens

Examples

Include clens header in C code for OpenBSD compatibility functions$ #include <clens.h>
Link clens library when compiling OpenBSD-ported code$ gcc -o program program.c -lclens
Use strlcpy function from clens for safe string copying$ strlcpy(dst, src, sizeof(dst));