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

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)


Detailed Description

sscanf, sgetch, sungetch

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

Definition in file sscanf.c.


Define Documentation

#define EOF   (-2)

Definition at line 9 of file sscanf.c.


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().

static int sgetch ( int  dummy,
char **  cpp 
) [static]

Get the next character from a string.

Parameters:
dummy unused variable
string to read next character from

Definition at line 35 of file sscanf.c.

References EOF.

Referenced by sscanf().

int sscanf ( char *  str,
char *  fmt,
int  args 
)

Read from a string according to a format.

Parameters:
*str string to read from
*fmt format string
args number of arguments in format string
Returns:
result of _doscan

Definition at line 22 of file sscanf.c.

References _doscan(), sgetch(), and sungetch().

static int sungetch ( int  dummy,
char **  cpp 
) [static]

Pushback a character in a string.

Parameters:
dummy unused variable
string to pushback character to

Definition at line 45 of file sscanf.c.

Referenced by sscanf().


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