base64wrap.h

 1#ifndef MATCHA_BASE64WRAP_H
 2#define MATCHA_BASE64WRAP_H
 3
 4#include <stddef.h>
 5
 6// wrap_base64 wraps base64-encoded data at 76 characters per line with \r\n
 7// separators, as required by MIME (RFC 2045). The caller must free the returned
 8// pointer with free().
 9// Returns NULL if allocation fails.
10char* wrap_base64(const char* data, size_t len, size_t* out_len);
11
12#endif