DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

addnstr(3curses)


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(3curses), mvaddstr(3curses), mvwaddstr(3curses) and waddstr(3curses) functions are similar to calling mbstowcs(3C) on str, and then calling addwstr(3curses), mvaddwstr(3curses), mvwaddwstr(3curses) and waddwstr(3curses), respectively.

The addnstr(3curses), mvaddnstr(3curses), mvwaddnstr(3curses) and waddnstr(3curses) 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(3C) on the first n bytes of str, and then calling addwstr(3curses), mvaddwstr(3curses), mvwaddwstr(3curses) and waddwstr(3curses), 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(3curses), mbstowcs(3C), curses(4)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004