1: # include   "curses.ext"
   2: 
   3: /*
   4:  *	This routine gets a string starting at (_cury,_curx)
   5:  *
   6:  * 6/21/83 (Berkeley) @(#)getstr.c	1.4
   7:  */
   8: wgetstr(win,str)
   9: reg WINDOW  *win;
  10: reg char    *str; {
  11: 
  12:     while ((*str = wgetch(win)) != ERR && *str != '\n')
  13:         str++;
  14:     if (*str == ERR) {
  15:         *str = '\0';
  16:         return ERR;
  17:     }
  18:     *str = '\0';
  19:     return OK;
  20: }

Defined functions

wgetstr defined in line 8; used 5 times
Last modified: 1984-01-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 641
Valid CSS Valid XHTML 1.0 Strict