DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Simple input and output

printw

SYNOPSIS

   #include <ocurses.h>
   

int printw(fmt [,arg...]) char *fmt;

NOTES

EXAMPLE

   #include <ocurses.h>
   

main() { char* title = "Not specified"; int no = 0;

/* Missing code. */

initscr();

/* Missing code. */

printw("%s is not in stock.\n", title); printw("Please ask the cashier to order %d for you.\n", no);

refresh(); endwin(); }

The output from this program will appear as follows:

   Not specified is not in stock.
   Please ask the cashier to order 0 for you.
   

$[]


Next topic: move
Previous topic: addstr

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 27 April 2004