DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

addnstr(CURSES)


addnstr -- add a string of multi-byte characters without rendition to a window and advance cursor

Synopsis

cc [options] file -lcurses
#include <curses.h>

int addnstr(const char *str, int n);

int addstr(const char *str);

int mvaddnstr(int y, int x, const char *str, int n);

int mvaddstr(int y, int x, const char *str);

int mvwaddnstr(WINDOW *win, int y, int x, const char *str, int n);

int mvwaddstr(WINDOW *win, int y, int x, const char *str);

int waddnstr(WINDOW *win, const char *str, int n);

int waddstr(WINDOW *win, const char *str);

Description

These functions write the characters of the string str on the current or specified window starting at the current or specified position using the background rendition.

These functions advance the cursor position. These functions perform special character processing. These functions perform wrapping.

The addstr(CURSES), mvaddstr(CURSES), mvwaddstr(CURSES) and waddstr(CURSES) functions are similar to calling mbstowcs(S) on str, and then calling addwstr(CURSES), mvaddwstr(CURSES), mvwaddwstr(CURSES) and waddwstr(CURSES), respectively.

The addnstr(CURSES), mvaddnstr(CURSES), mvwaddnstr(CURSES) and waddnstr(CURSES) functions use at most n bytes from str. These functions add the entire string when n is -1. These functions are similar to calling mbstowcs(S) on the first n bytes of str, and then calling addwstr(CURSES), mvaddwstr(CURSES), mvwaddwstr(CURSES) and waddwstr(CURSES), respectively.

Return value

Upon successful completion, these functions return OK. Otherwise, they return ERR.

Errors

No errors are defined.

Standards Conformance

The Single UNIX Specification, Version 2; The Open Group.

References

addnwstr(CURSES), mbstowcs(S), curses(F)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005