The formatting specification (format_spec) and the other arguments are identical to those used with the printf function. The printw and wprintw functions format and then print the resultant string to the window using the addstr function. For more information, see the printf and scrollok functions in this section.