add ident to admin checking, and add hope
[fillybot.git] / entities.h
blob4c3e1192399981017b92e71a08a5a51e0da47f23
1 #ifndef DECODE_HTML_ENTITIES_UTF8
2 #define DECODE_HTML_ENTITIES_UTF8
4 #include <stddef.h>
6 extern size_t decode_html_entities_utf8(char *dest, const char *src);
7 /* if `src` is `NULL`, input will be taken from `dest`, decoding
8 the entities in-place
10 otherwise, the output will be placed in `dest`, which should point
11 to a buffer big enough to hold `strlen(src) + 1` characters, while
12 `src` remains unchanged
14 the function returns the length of the decoded string
17 #endif