cmdline.c File Reference

command line test interface More...

#include <string.h>
#include <stdio.h>
#include "cmdline.h"

Go to the source code of this file.

Defines

#define PROMPT   "UFFS>"

Functions

void cli_add_commandset (struct cli_commandset *cmds)
const char * cli_getparam (const char *tail, char **next)
void cliMain ()


Detailed Description

command line test interface

Author:
Ricky Zheng, created in 22th Feb, 2007

Definition in file cmdline.c.


Define Documentation

#define PROMPT   "UFFS>"

Definition at line 12 of file cmdline.c.

Referenced by cliMain().


Function Documentation

void cli_add_commandset ( struct cli_commandset cmds  ) 

Definition at line 158 of file cmdline.c.

References cli_commandset::cmd, and NULL.

Referenced by cliMain(), and main().

const char* cli_getparam ( const char *  tail,
char **  next 
)

Definition at line 21 of file cmdline.c.

References NULL.

Referenced by cmdCat(), cmdCp(), cmdFormat(), cmdMkdir(), cmdMkf(), cmdRen(), cmdRm(), cmdSt(), and cmdTest1().

void cliMain (  ) 

Definition at line 167 of file cmdline.c.

References cli_add_commandset(), and PROMPT.

Referenced by main().


Generated on Sat Mar 17 15:45:45 2007 for uffs-doc by  doxygen 1.5.0