summaryrefslogtreecommitdiff
path: root/examples/readline/rlgeneric.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/readline/rlgeneric.c')
-rw-r--r--examples/readline/rlgeneric.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/examples/readline/rlgeneric.c b/examples/readline/rlgeneric.c
deleted file mode 100644
index 2bb5da4..0000000
--- a/examples/readline/rlgeneric.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Host version of readline test program.
- * Works as RTEMS version when included in rlchk.c
- */
-#include <stdio.h>
-#include <stdlib.h>
-#include <malloc.h>
-#include <readline/readline.h>
-#include <readline/history.h>
-
-int
-main (int argc, char **argv)
-{
- char *line;
-
- rl_bind_key ('\t', rl_insert);
- stifle_history (10);
- for (;;) {
- line = readline ("Enter a line: ");
- if (line && *line)
- add_history (line);
- printf ("Line: `%s'\n", line);
- if (line && !strcmp (line, "dump")) {
- rl_dump_variables (0,0);
- rl_dump_functions (0,0);
- }
- free (line);
- }
- return 0;
-}