append-to-buffer is an interactive compiled Lisp function in `simple.el'.

(append-to-buffer BUFFER START END)

Append to specified buffer the text of the region.
It is inserted into that buffer before its point.

When calling from a program, give three arguments:
BUFFER (or buffer name), START and END.
START and END specify the portion of the current buffer to be copied.