Go to the source code of this file.
Defines | |
#define | EOF (-2) |
Functions | |
static int | sgetch (int, char **) |
static int | sungetch (int, char **) |
int | _doscan (register char *, register int **, int(*)(), int(*)(), int, int) |
int | sscanf (char *str, char *fmt, int args) |
Definition in file sscanf.c.
int _doscan | ( | register char * | fmt, | |
register int ** | argp, | |||
int(*)() | getch, | |||
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 47 of file doscan.c.
References _getccl(), _innum(), EOF, getch(), isdigit, isupper, LONG, REGULAR, SHORT, tolower, and ungetch().
static int sgetch | ( | int | dummy, | |
char ** | cpp | |||
) | [static] |
int sscanf | ( | char * | str, | |
char * | fmt, | |||
int | args | |||
) |
Read from a string according to a format.
*str | string to read from | |
*fmt | format string | |
args | number of arguments in format string |
Definition at line 22 of file sscanf.c.
References _doscan(), sgetch(), and sungetch().
static int sungetch | ( | int | dummy, | |
char ** | cpp | |||
) | [static] |