NAME

cat_base64tobin - decode base64 encoded data.

SYNOPSIS

#include <cat/catutil.h>

int cat_base64tobin(char **base64ptr, char *binbuf);

DESCRIPTION

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.

RETURN VALUES

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

SEE ALSO

cat, catutil, cat_bintobase64