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

1.1     ! root        1: # include      "curses.ext"
        !             2: # include      <signal.h>
        !             3: /*     @(#) m_addstr.c: 1.1 10/15/83   (1.3    12/16/82)       */
        !             4: 
        !             5: /*
        !             6:  *     mini.c contains versions of curses routines for minicurses.
        !             7:  *     They work just like their non-mini counterparts but draw on
        !             8:  *     std_body rather than stdscr.  This cuts down on overhead but
        !             9:  *     restricts what you are allowed to do - you can't get stuff back
        !            10:  *     from the screen and you can't use multiple windows or things
        !            11:  *     like insert/delete line (the logical ones that affect the screen).
        !            12:  *     All this but multiple windows could probably be added if somebody
        !            13:  *     wanted to mess with it.
        !            14:  *
        !            15:  * 3/5/81 (Berkeley) @(#)addch.c       1.3
        !            16:  */
        !            17: 
        !            18: /*
        !            19:  *     This routine adds a string starting at (_cury,_curx)
        !            20:  *
        !            21:  * 1/26/81 (Berkeley) @(#)addstr.c     1.1
        !            22:  */
        !            23: m_addstr(str)
        !            24: register char  *str;
        !            25: {
        !            26: # ifdef DEBUG
        !            27:        if(outf) fprintf(outf, "M_ADDSTR(\"%s\")\n", str);
        !            28: # endif
        !            29:        while (*str)
        !            30:                if (m_addch((chtype) *str++) == ERR)
        !            31:                        return ERR;
        !            32:        return OK;
        !            33: }

unix.superglobalmegacorp.com

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