make sure all textcode/scan_* routines work if dest or destlen is NULL
write generic stralloc and array textcode wrapper functions change textcode API to use long instead of int add cescape fmt and scan functions to textcode add fmt_foldwhitespace to textcode