diff options
Diffstat (limited to 'readline/examples/rlbasic.c')
-rw-r--r-- | readline/examples/rlbasic.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/readline/examples/rlbasic.c b/readline/examples/rlbasic.c deleted file mode 100644 index 8fc66ab..0000000 --- a/readline/examples/rlbasic.c +++ /dev/null @@ -1,28 +0,0 @@ -#include <stdlib.h> -#include <unistd.h> -#include <stdio.h> - -#if defined (READLINE_LIBRARY) -# include "readline.h" -# include "history.h" -#else -# include <readline/readline.h> -# include <readline/history.h> -#endif - -int -main (int c, char **v) -{ - char *input; - - for (;;) { - input = readline ((char *)NULL); - if (input == 0) - break; - printf ("%s\n", input); - if (strcmp (input, "exit") == 0) - break; - free (input); - } - exit (0); -} |