4 /****************************************************************/
5 /* Wgetstr(win,str) reads in a string (terminated by \n or \r) */
6 /* To the buffer pointed to by 'str', and displays the input */
7 /* In window 'win'. The user's erase and kill characters are */
9 /****************************************************************/
15 while ((*str
= wgetch(win
)) != ERR
&& *str
!= '\n') str
++;