![]() |
Doxygen Documentation |
|||||
Package: |
CLI |
|||||
Version: |
V0-0-5 |
Marked: |
(not marked) |
|||
Constituent: |
cli |
Tag: |
linux-gcc |
#include <stdio.h>
#include <stdlib.h>
#include "GRL/readline.h"
#include "GRL/history.h"
#include "CLI/CLI_pubdefs.h"
#include "CLI_prvdefs.h"
Defines | |
#define | CLI_OOM 0 |
Out of memory. | |
#define | CLI_EOL 1 |
End of line. | |
#define | CLI_EOF 2 |
End of file. | |
#define | CLI_BAD 3 |
Error reading file. | |
#define | CLI_QUANTUM 256 |
Memory allocation quantum. | |
Functions | |
CLI_Control * | CLI_createCtl (const CLI_Syntax *) |
Allocate and initialize a CLI control structure. | |
char * | CLI_getTerm (const char *) |
Fetch a line of input from the terminal. | |
char * | CLI_getFile (CLI_Control *) |
Fetch a line of input from a file. | |
unsigned int | CLI_getLine (FILE *, char **, int *) |
Construct the next logical line of input in a file. | |
unsigned int | CLI_command (const char *ilin, const char *prompt, const CLI_Syntax *syntax, void *user) |
Process commands. |
CVS $Id: CLI_command.c,v 1.3 2003/12/12 06:13:49 apw Exp $
|
Process commands.
|
|
Allocate and initialize a CLI control structure.
|
|
Fetch a line of input from a file.
|
|
Construct the next logical line of input in a file.
|
|
Fetch a line of input from the terminal.
|