cat_bintobase64 - convert binary data to base64 encoded data
#include <cat/catutil.h>
int cat_bintobase64(const void *binbuf, int binlen, char *base64buf);
Converts any data pointed to by binbuf and up to binlen to base64 encoded data, placing the result in base64buf. The
base64buf argument must point to a buffer sufficiently large to hold the result. No
memory is allocated.
Returns the length of the result or a negative error code.
cat, catutil, cat_base64tobin