*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: mvaddchstr | Section: 3 | Source: Digital UNIX | File: mvaddchstr.3.gz
curs_addchstr(3) Library Functions Manual curs_addchstr(3) NAME curs_addchstr, addchstr, addchnstr, waddchstr, waddchnstr, mvaddchstr, mvaddchnstr, mvwaddchstr, mvwaddchnstr - Add string of characters (and attributes) to a Curses window LIBRARY Curses Library (libcurses.a, libcurses.so) SYNOPSIS #include <curses.h> int addchstr(const chtype *chstr); int addchnstr(const chtype *chstr, int n); int waddchstr(WINDOW *win, const chtype *chstr); int waddchn- str(WINDOW *win, const chtype *chstr, int n); int mvaddchstr(int y, int x, const chtype *chstr); int mvaddchnstr(int y, int x, const chtype *chstr, int n); int mvwaddchstr(WINDOW *win, int y, int x, const chtype *chstr); int mvwaddchnstr(WINDOW *win, int y, int x, const chtype *chstr, int n); STANDARDS Interfaces documented on this reference page conform to industry stan- dards as follows: addchstr, waddchstr, mvaddchstr, mvwaddchstr: XPG4, XPG4-UNIX addchnstr, waddchnstr, mvaddchnstr, mvwaddchnstr: XPG4-UNIX Refer to the standards(5) reference page for more information about in- dustry standards and associated tags. DESCRIPTION All of these routines copy chstr directly into the window image struc- ture starting at the current or specified cursor position. The four routines with n as the last argument copy at most n elements, but no more than will fit on the line. If n=-1, then all the routines copy the whole string, up to the maximum number that fit on the line or un- til a null terminator is reached. The routines do not advance the position of the window cursor. They work faster than waddnstr because they merely copy chstr into the win- dow image structure. On the other hand, care must be taken when using these functions because they: Do not perform any kind of checking (such as for the newline character) Do not advance the current cursor posi- tion Truncate the string, rather then wrapping it around to a new line NOTES The header file curses.h automatically includes the header file stdio.h. Note that all routines except waddchstr and waddchnstr may be macros. RETURN VALUES All routines return the integer ERR upon failure and OK upon successful completion. RELATED INFORMATION Functions: curses(3) Others: standards(5) delim off curs_addchstr(3)

Navigation Options