scroll(). You have to set scrollok(win, TRUE) first. Actually if you just want to spew data like a normal terminal you only need to set scrollok() by itself.
#include <ncurses.h>
int main(void)
{
initscr();
scrollok(stdscr,TRUE);
for (int i = 0; i < 100; ++i)
{
printw("%d - lots and lots of lines flowing down the terminal\n", i);
refresh();
}
getch();
endwin();
return 0;
}