The formatting specification (format_spec) and the other arguments are identical to those used with the scanf function. The scanw and wscanw functions accept, format, and return a line of text from the terminal screen. For more information, see the scrollok and scanf functions.