scanw.3cur
来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· 3CUR 代码 · 共 86 行
3CUR
86 行
.TH scanw 3cur .SH Namescanw, mvscanw, mvwscanw, wscanw \- formatted read from window.SH Syntax.br.B#include <cursesX.h>.PP.br.Bint scanw(fmt [, arg] ...).br.Bchar \(**fmt;.PP.Bint wscanw(win, fmt [, arg] ...).br.BWINDOW \(**win;.br.Bchar \(**fmt;.PP.Bint mvscanw(y, x, fmt [, arg] ...).br.Bint y, x;.br.Bchar \(**fmt;.PP.Bint mvwscanw(win, y, x, fmt [, arg] ...).br.BWINDOW \(**win;.br.Bint y, x;.br.Bchar \(**fmt;.SH Description.NXR "scanw subroutine".NXR "mvscanw subroutine".NXR "mvwscanw subroutine".NXR "wscanw subroutine"These routines correspond to .PN scanf .The function .PN scanwreads input from the default window.The function .PN wscanwreads input from the specified window.The function.PN mvscanwmoves the cursor to the specified position and then reads inputfrom the default window.The function .PN mvwscanwmoves the cursor to the specified position and then reads input from the specified window..PPFor all the functions,the routine .PN wgetstr is called to get a string from the window,and the resulting line is used as input for the scan.All character interpretation is carried out according to the .PN scanf function rules..SH Return ValuesUpon successful completion, the.PN scanw ,.PN mvscanw ,.PN mvwscanwand.PN wscanwfunctions return the number of items successfully matched. On end-of-file,they return EOF. Otherwise they return ERR..SH See Alsowgetstr(3cur), scanf(3s)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?