Go to the source code of this file.
|
int | _doscan (register char *, register int **, int(*getc)(int, int), int(*ungetc)(int, int), int, int) |
|
int | fscanf (int dev, char *fmt, int args) |
|
int | getc (int) |
| デバイスから1Byte読み込むgetc()のextern宣言 More...
|
|
static int | getch (int, int) |
|
static int | ungetch (int, int) |
|
◆ EMPTY
◆ EOF
◆ _doscan()
int _doscan |
( |
register char * |
, |
|
|
register int ** |
, |
|
|
int(*)(int, int) |
getc, |
|
|
int(*)(int, int) |
ungetc, |
|
|
int |
, |
|
|
int |
|
|
) |
| |
Definition at line 38 of file doscan.c.
References _getccl(), _innum(), EOF, getch(), isdigit, isupper, LONG, REGULAR, SHORT, tolower, and ungetch().
Referenced by fscanf().
49 int **ptr, fileended, size;
60 if ((ch = *fmt++) ==
'%')
77 len = len * 10 + ch -
'0';
115 return (nmatch ? nmatch : -1);
124 arg2)) ==
' ' || ch1 ==
'\t' || ch1 ==
'\n')
129 (*ungetch) (arg1, arg2);
135 ch1 = (*getch) (arg1, arg2);
142 (*ungetch) (arg1, arg2);
static int ungetch(int, int)
#define tolower(c)
アルファベットの大文字を小文字に変換するマクロ
#define isdigit(c)
文字が10進数の数字かどうかをチェックするマクロ
static int _innum(int **, int, int, int, int(*getc)(int, int), int(*ungetc)(int, int), int, int, int *)
#define isupper(c)
文字がアルファベットの大文字かどうかをチェックするマクロ
static int getch(int, int)
static char * _getccl(char *)
◆ fscanf()
int fscanf |
( |
int |
dev, |
|
|
char * |
fmt, |
|
|
int |
args |
|
) |
| |
Definition at line 23 of file fscanf.c.
References _doscan(), EMPTY, getch(), and ungetch().
33 (fmt, (
int **)&args,
getch,
ungetch, dev, (
int)(
int)&buf));
static int ungetch(int, int)
int _doscan(register char *, register int **, int(*getc)(int, int), int(*ungetc)(int, int), int, int)
static int getch(int, int)
◆ getc()
デバイスから1Byte読み込むgetc()のextern宣言
Definition at line 9 of file getc.c.
References devtab, disable(), dentry::dvgetc, isbaddev, restore(), and SYSERR.
Referenced by getch().
23 retval = (*devptr->
dvgetc) (devptr);
devcall(* dvgetc)(struct dentry *)
uint32 intmask
保存された割り込みマスク
int int32
符号あり32ビット整数(int)
#define isbaddev(f)
デバイスIDを検証するマクロ。
intmask disable(void)
割り込み禁止(intr.Sに定義がある)
◆ getch()
static int getch |
( |
int |
dev, |
|
|
int |
abuf |
|
) |
| |
|
static |
◆ ungetch()
static int ungetch |
( |
int |
dev, |
|
|
int |
abuf |
|
) |
| |
|
static |