libzstr is a C library for safe, efficient, 8-bit clean strings. It is also fully compatible with traditional <string.h> functions from the C standard library as well as alternative string functions like OpenBSD's strl{cat,cpy}()'. -
View it on GitHub