3 //FIXME out gets silently truncated if outsize is too small
5 size_t escape(char* in
, char* out
, size_t outsize
) {
7 while(*in
&& l
+ 3 < outsize
) {
61 size_t unescape(char* in
, char *out
, size_t outsize
) {
63 while(*in
&& l
+ 2 < outsize
) {
99 // FIXME add handling of hex and octal