Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/lib/libxc/doscan.c File Reference

#include <ctype.h>

Include dependency graph for doscan.c:

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]


Detailed Description

_doscan, _innum, _instr, _getccl

Id
doscan.c 221 2007-07-11 18:45:46Z mschul

Definition in file doscan.c.


Define Documentation

#define EOF   (-2)

Definition at line 13 of file doscan.c.

#define LONG   2

Definition at line 21 of file doscan.c.

Referenced by _doscan(), and _innum().

#define NULL   0

Definition at line 14 of file doscan.c.

#define REGULAR   1

Definition at line 20 of file doscan.c.

Referenced by _doscan(), and _innum().

#define SHORT   0

Definition at line 19 of file doscan.c.

Referenced by _doscan(), and _innum().

#define SPC   01

Definition at line 16 of file doscan.c.

Referenced by _instr().

#define STP   02

Definition at line 17 of file doscan.c.

Referenced by _getccl(), and _instr().


Function Documentation

int _doscan ( register char *  fmt,
register int **  argp,
int(*)()  getch,
int(*)()  ungetch,
int  arg1,
int  arg2 
)

Scan and recognize input according to a format

Parameters:
*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  ) 

Definition at line 267 of file doscan.c.

References STP.

Referenced by _doscan().

int _innum ( int **  ptr,
int  type,
int  len,
int  size,
int(*)()  getch,
int(*)()  ungetch,
int  arg1,
int  arg2,
int *  eofptr 
)

Definition at line 126 of file doscan.c.

References _instr(), EOF, getch(), isdigit, LONG, NULL, REGULAR, SHORT, and ungetch().

Referenced by _doscan().

int _instr ( register char *  ptr,
int  type,
int  len,
int(*)()  getch,
int(*)()  ungetch,
int  arg1,
int  arg2,
int *  eofptr 
)

Definition at line 219 of file doscan.c.

References EOF, getch(), SPC, and STP.

Referenced by _innum().


Variable Documentation

char _sctab[128]

Initial value:

 {
        0,0,0,0,0,0,0,0,
        0,SPC,SPC,0,0,0,0,0,
        0,0,0,0,0,0,0,0,
        0,0,0,0,0,0,0,0,
        SPC,0,0,0,0,0,0,0,
        0,0,0,0,0,0,0,0,
        0,0,0,0,0,0,0,0,
        0,0,0,0,0,0,0,0,
}

Definition at line 27 of file doscan.c.


Generated on Thu Oct 9 22:34:50 2008 for xinu by  doxygen 1.5.5