# include SCCSID(@(#)append.c 8.1 12/31/84) /* ** APPEND -- block concatenate ** ** block `b1' of length `l1' is concatenated to block ** `b2' of length `l2', giving `b3'. ** ** Returns the address of the next byte available after ** the end of `b3'. */ char * append(b1, l1, b2, l2, b3) int l1, l2; char *b1, *b2, *b3; { register char *p, *q; register int n; p = b3; n = l1; q = b1; while (n-- > 0) *p++ = *q++; n = l2; q = b2; while (n-- > 0) *p++ = *q++; return (p); }