NAME

cat_bintobase64 - convert binary data to base64 encoded data

SYNOPSIS

#include <cat/catutil.h>

int cat_bintobase64(const void *binbuf, int binlen, char *base64buf);

DESCRIPTION

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.

RETURN VALUES

Returns the length of the result or a negative error code.

SEE ALSO

cat, catutil, cat_base64tobin