Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/shell/lexan.c File Reference

#include <kernel.h>
#include <shell.h>

Include dependency graph for lexan.c:

Go to the source code of this file.

Functions

short lexan (char *line, ushort linelen, char *tokbuf, char *tok[])


Detailed Description

lexan

Id
lexan.c 217 2007-07-11 01:03:18Z brylow

Definition in file lexan.c.


Function Documentation

short lexan ( char *  line,
ushort  linelen,
char *  tokbuf,
char *  tok[] 
)

Ad hoc lexical analyzer to divide command line into tokens

Parameters:
*line pointer to line to parse
linelen length of line to parse
*tokbuf buffer for tokens
*tok[] array of pointers into token buffer
Returns:
number of tokens created

Definition at line 20 of file lexan.c.

References isEndOfLine, isOtherSpecial, isQuote, isWhitespace, SHELL_MAXTOK, and SYSERR.

Referenced by shell().


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