Revert: * Makefile.in (check/%.exp): Pass directory for GDB_PARALLEL.
[deliverable/binutils-gdb.git] / readline / examples / rlbasic.c
1 #include <stdlib.h>
2 #include <unistd.h>
3 #include <stdio.h>
4
5 #if defined (READLINE_LIBRARY)
6 # include "readline.h"
7 # include "history.h"
8 #else
9 # include <readline/readline.h>
10 # include <readline/history.h>
11 #endif
12
13 int
14 main (int c, char **v)
15 {
16 char *input;
17
18 for (;;) {
19 input = readline ((char *)NULL);
20 if (input == 0)
21 break;
22 printf ("%s\n", input);
23 if (strcmp (input, "exit") == 0)
24 break;
25 free (input);
26 }
27 exit (0);
28 }
This page took 0.047283 seconds and 4 git commands to generate.