Go to the source code of this file.
Functions | |
| int | getc (int) |
| getc - get one character from a device | |
| static int | getch (int dev, int abuf) |
| Get a character from a device with pushback. | |
| static int | ungetch (int dev, int abuf) |
| Pushback a character for getch. | |
| int | _doscan (register char *, register int **, int(*getc)(int, int), int(*ungetc)(int, int), int, int) |
| Scan and recognize input according to a format. | |
| int | fscanf (int dev, char *fmt, int args) |
| Read from a device (file) according to a format. | |
Definition in file fscanf.c.
| int _doscan | ( | register char * | fmt, | |
| register int ** | argp, | |||
| int(*)(int, int) | getch, | |||
| int(*)(int, int) | ungetch, | |||
| int | arg1, | |||
| int | arg2 | |||
| ) |
Scan and recognize input according to a format.
| *fmt | format string for the scanf | |
| **argp | arguments to scanf | |
| getch | function to unget a character | |
| ungetch | function to unget a character | |
| arg1 | 1st argument to getch/ungetch | |
| arg2 | 2nd argument to getch/ungetch |
Definition at line 49 of file doscan.c.
References EOF, getch(), and ungetch().

| int fscanf | ( | int | dev, | |
| char * | fmt, | |||
| int | args | |||
| ) |
Read from a device (file) according to a format.
| dev | device to read from | |
| *fmt | format string | |
| args | number of arguments in format string |
Definition at line 26 of file fscanf.c.
References _doscan(), EMPTY, getch(), and ungetch().

| int getc | ( | int | descrp | ) |
| static int getch | ( | int | dev, | |
| int | abuf | |||
| ) | [static] |
Get a character from a device with pushback.
| dev | device to read from | |
| *buf | buffer for reading into |
Definition at line 39 of file fscanf.c.
References EMPTY, EOF, and getc().
Referenced by _doscan(), and fscanf().


| static int ungetch | ( | int | dev, | |
| int | abuf | |||
| ) | [static] |
1.5.5