getstr - get a multi-byte character string from the terminal
#include <curses.h> int getstr(char *str);
Refer to getnstr().