1curs_addstr(3CURSES)       Curses Library Functions       curs_addstr(3CURSES)
2
3
4

NAME

6       curs_addstr,  addstr,  addnstr, waddstr, waddnstr, mvaddstr, mvaddnstr,
7       mvwaddstr, mvwaddnstr - add a string of characters to a  curses  window
8       and advance cursor
9

SYNOPSIS

11       cc [ flag ... ] file ... -lcurses [ library ... ]
12       #include <curses.h>
13
14       int addstr(char *str);
15
16
17       int addnstr(char *str, int n);
18
19
20       int waddstr(WINDOW *win, char *str);
21
22
23       int waddnstr(WINDOW *win, char *str, int n);
24
25
26       int mvaddstr(int y, int x, char *str);
27
28
29       int mvaddnstr(int y, int x, char *str, int n);
30
31
32       int mvwaddstr(WINDOW *win, int y, int x, char *str);
33
34
35       int mvwaddnstr(WINDOW *win, int y, int x, char *str, int n);
36
37

DESCRIPTION

39       All  of  these routines write all the characters of the null terminated
40       character string str on the given window. It is similar to calling wad‐
41       dch()  once  for each character in the string. The four routines with n
42       as the last argument write at most n characters. If n is negative, then
43       the entire string will be added.
44

RETURN VALUES

46       All  routines  return the integer ERR upon failure and an integer value
47       other than ERR upon successful completion.
48

ATTRIBUTES

50       See attributes(5) for descriptions of the following attributes:
51
52
53
54
55       ┌─────────────────────────────┬─────────────────────────────┐
56       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
57       ├─────────────────────────────┼─────────────────────────────┤
58       │MT-Level                     │Unsafe                       │
59       └─────────────────────────────┴─────────────────────────────┘
60

SEE ALSO

62       curs_addch(3CURSES), curses(3CURSES), attributes(5)
63

NOTES

65       The header <curses.h> automatically includes the headers <stdio.h>  and
66       <unctrl.h>.
67
68
69       Note  that  all  routines  except  waddstr()  and waddnstr() may not be
70       macros.
71
72
73
74SunOS 5.11                        31 Dec 1996             curs_addstr(3CURSES)
Impressum