diff options
author | June McEnroe <june@causal.agency> | 2018-12-16 16:21:58 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-12-16 16:21:58 -0500 |
commit | 38b4a53d57c85ba52952d04ea96f7649ef1295ef (patch) | |
tree | a06cd6ef9512eeb1798e82b741ef03b3ef8b59b0 /chat.h | |
parent | Underline own nick (diff) | |
download | catgirl-38b4a53d57c85ba52952d04ea96f7649ef1295ef.tar.gz catgirl-38b4a53d57c85ba52952d04ea96f7649ef1295ef.zip |
Move base64 to string.c
Diffstat (limited to '')
-rw-r--r-- | chat.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chat.h b/chat.h index 079a214..9bce7a0 100644 --- a/chat.h +++ b/chat.h @@ -190,6 +190,9 @@ void logFmt( ) __attribute__((format(printf, 3, 4))); void logReplay(struct Tag tag); +size_t base64Size(size_t len); +void base64(char *dst, const byte *src, size_t len); + wchar_t *wcsnchr(const wchar_t *wcs, size_t len, wchar_t chr); wchar_t *wcsnrchr(const wchar_t *wcs, size_t len, wchar_t chr); wchar_t *ambstowcs(const char *src); @@ -197,7 +200,6 @@ char *awcstombs(const wchar_t *src); char *awcsntombs(const wchar_t *src, size_t nwc); int vaswprintf(wchar_t **ret, const wchar_t *format, va_list ap); int aswprintf(wchar_t **ret, const wchar_t *format, ...); -char *base64(const byte *src, size_t len); // HACK: clang won't check wchar_t *format strings. #ifdef NDEBUG |