lexan.c File Reference

Implements the functions: lexan. More...

#include <stddef.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[])
 Ad hoc lexical analyzer to divide command line into tokens.


Detailed Description

Implements the functions: lexan.

Id
lexan.c 358 2007-10-11 20:56:25Z agember

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 SHELL_MAXTOK, and SYSERR.

Referenced by shell().

Here is the caller graph for this function:


Generated on Wed Aug 27 06:08:37 2008 for Embedded XINU by  doxygen 1.5.5