5 //FIXME out gets silently truncated if outsize is too small
7 size_t escape(char* in
, char* out
, size_t outsize
) {
9 while(*in
&& l
+ 3 < outsize
) {
60 size_t unescape(char* in
, char *out
, size_t outsize
) {
62 while(*in
&& l
+ 1 < outsize
) {
101 // FIXME add handling of hex and octal