Annotation of researchv10no/ncurses/screen/_sprintw.c, revision 1.1

1.1     ! root        1: /*     @(#) _sprintw.c: 1.1 10/15/83   (1.4    3/1/83) */
        !             2: 
        !             3: # include      "curses.ext"
        !             4: # include      <varargs.h>
        !             5: 
        !             6: /*
        !             7:  *     This routine actually executes the printf and adds it to the window
        !             8:  *
        !             9:  *     This code now uses the vsprintf routine, which portably digs
        !            10:  *     into stdio.  We provide a vsprintf for older systems that don't
        !            11:  *     have one.
        !            12:  */
        !            13: 
        !            14: _sprintw(win, fmt, ap)
        !            15: WINDOW *win;
        !            16: char   *fmt;
        !            17: va_list ap;
        !            18: {
        !            19:        char    buf[BUFSIZ];
        !            20: 
        !            21:        vsprintf(buf, fmt, ap);
        !            22:        return waddstr(win, buf);
        !            23: }

unix.superglobalmegacorp.com

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