cat_base64tobin - decode base64 encoded data.
#include <cat/catutil.h>
int cat_base64tobin(char **base64ptr, char *binbuf);
Decodes base64 encoded data pointed to by base64ptr and places the result in the supplied binbuf, which must be sufficiently large to hold the data. On return, base64ptr
is advanced to the position where decoding stopped. No memory is allocated.
Returns the length of the result or a negative error code.
cat, catutil, cat_bintobase64