#include <ctype.h>
Go to the source code of this file.
Defines | |
#define | EOF (-2) |
#define | NULL 0 |
#define | SPC 01 |
#define | STP 02 |
#define | SHORT 0 |
#define | REGULAR 1 |
#define | LONG 2 |
Functions | |
int | _innum (int **, int, int, int, int(*)(), int(*)(), int, int, int *) |
int | _instr (register char *, int, int, int(*)(), int(*)(), int, int, int *) |
char * | _getccl (char *) |
int | _doscan (register char *fmt, register int **argp, int(*getch)(), int(*ungetch)(), int arg1, int arg2) |
Variables | |
char | _sctab [128] |
Definition in file doscan.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().
char * _getccl | ( | char * | s | ) |
int _innum | ( | int ** | ptr, | |
int | type, | |||
int | len, | |||
int | size, | |||
int(*)() | getch, | |||
int(*)() | ungetch, | |||
int | arg1, | |||
int | arg2, | |||
int * | eofptr | |||
) |
int _instr | ( | register char * | ptr, | |
int | type, | |||
int | len, | |||
int(*)() | getch, | |||
int(*)() | ungetch, | |||
int | arg1, | |||
int | arg2, | |||
int * | eofptr | |||
) |
char _sctab[128] |