Annotation of 40BSD/lib/libcurses/getstr.c, revision 1.1

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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.