I'm very pleased to announce the release of our new website and documentation using the new toolchain with Hugo and AsciiDoctor. To get more information about the new toolchain please read the FreeBSD Documentation Project Primer[1], Hugo docs[2] and AsciiDoctor docs[3]. Acknowledgment: Benedict Reuschling <bcr@> Glen Barber <gjb@> Hiroki Sato <hrs@> Li-Wen Hsu <lwhsu@> Sean Chittenden <seanc@> The FreeBSD Foundation [1] https://docs.FreeBSD.org/en/books/fdp-primer/ [2] https://gohugo.io/documentation/ [3] https://docs.asciidoctor.org/home/ Approved by: doceng, core
76 lines
1.6 KiB
Groff
76 lines
1.6 KiB
Groff
.\" $FreeBSD$
|
|
.TH curs_scanw 3 ""
|
|
.SH 名称
|
|
\fBscanw\fR, \fBwscanw\fR, \fBmvscanw\fR,
|
|
\fBmvwscanw\fR, \fBvwscanw\fR - convert formatted input from a \fBncurses\fR widow
|
|
.SH 書式
|
|
\fB#include <ncurses.h>\fR
|
|
|
|
\fBint scanw(char *fmt\fR [\fB, arg\fR] \fB...);\fR
|
|
.br
|
|
\fBint wscanw(WINDOW *win, char *fmt\fR [\fB, arg\fR] \fB...);\fR
|
|
.br
|
|
\fBint mvscanw(int y, int x, char *fmt\fR [\fB, arg\fR] \fB...);\fR
|
|
.br
|
|
\fBint mvwscanw(WINDOW *win, int y, int x,
|
|
char *fmt\fR [\fB, arg]\fR \fB...);\fR
|
|
.br
|
|
\fBint vwscanw(WINDOW *win, char *fmt, va_list varglist);\fR
|
|
.SH 解説
|
|
\fBscanw\fR
|
|
、
|
|
\fBwscanw\fR
|
|
、および
|
|
\fBmvscanw\fR
|
|
の各ルーチンは、
|
|
\fBscanf\fR
|
|
[
|
|
\fBscanf\fR(3)
|
|
を参照
|
|
]
|
|
に類似しています。
|
|
これらのルーチンの効果は、ウィンドウで
|
|
\fBwgetstr\fR
|
|
が呼び出されたかのようであり、結果の行は
|
|
\fBsscanf\fR(3)
|
|
用の入力として使用されます。
|
|
\fIfmt\fR
|
|
フィールド内の変数にマップされないフィールドは失われます。
|
|
|
|
\fBvwscanw\fR
|
|
ルーチンは、変数引数リストを使用して
|
|
\fBwscanw\fR
|
|
を実行するという点で、
|
|
\fBvwprintw\fR
|
|
に類似しています。
|
|
3
|
|
番めの引数は
|
|
\fIva\fR_\fIlist\fR
|
|
です。これは、
|
|
\fB<varargs.h>\fR
|
|
で定義された引数リストを指すポインタです。
|
|
.SH 戻り値
|
|
\fBvwscanw\fR
|
|
は、処理が失敗すると
|
|
\fBERR\fR
|
|
を返し、処理が成功すると走査された
|
|
フィールドの数に等しい整数を返します。
|
|
|
|
アプリケーションは、
|
|
\fBscanw\fR
|
|
、
|
|
\fBwscanw\fR
|
|
、
|
|
\fBmvscanw\fR
|
|
、および
|
|
\fBmvwscanw\fR
|
|
の各ルーチンの
|
|
戻り値を使用して、呼び出しでマップされたフィールドの数を判定できます。
|
|
.SH 関連項目
|
|
\fBncurses\fR(3), \fBcurs_getstr\fR(3), \fBcurs_printw\fR(3), \fBscanf\fR(3)
|
|
.\"#
|
|
.\"# The following sets edit modes for GNU EMACS
|
|
.\"# Local Variables:
|
|
.\"# mode:nroff
|
|
.\"# fill-column:79
|
|
.\"# End:
|