/* ISC license. */ #include #include void bufalloc_clean (register bufalloc *ba) { if (ba->p) { byte_copy(ba->x.s, ba->x.len - ba->p, ba->x.s + ba->p) ; ba->x.len -= ba->p ; ba->p = 0 ; } }