ed
Functions | Variables
repl.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <readline/readline.h>
#include <readline/history.h>
Include dependency graph for repl.cpp:

Go to the source code of this file.

Functions

char * dupstr (char *)
 
int main ()
 
static char ** my_completion (const char *, int, int)
 
char * my_generator (const char *, int)
 
void * xmalloc (int)
 

Variables

char * cmd [] ={ "hello", "world", "hell" ,"word", "quit", " " }
 

Function Documentation

◆ dupstr()

char * dupstr ( char *  s)

Definition at line 72 of file repl.cpp.

◆ main()

int main ( )

Definition at line 13 of file repl.cpp.

◆ my_completion()

static char ** my_completion ( const char *  text,
int  start,
int  end 
)
static

Definition at line 35 of file repl.cpp.

◆ my_generator()

char * my_generator ( const char *  text,
int  state 
)

Definition at line 50 of file repl.cpp.

◆ xmalloc()

void * xmalloc ( int  size)

Definition at line 80 of file repl.cpp.

Variable Documentation

◆ cmd

char* cmd[] ={ "hello", "world", "hell" ,"word", "quit", " " }

Definition at line 11 of file repl.cpp.