PATH:
usr
/
share
/
doc
/
readline-devel
#include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <string.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); }
[-] CHANGES
[edit]
[-] rl.c
[edit]
[-] fileman.c
[edit]
[-] hist_purgecmd.c
[edit]
[-] rltest.c
[edit]
[-] excallback.c
[edit]
[-] readlinebuf.h
[edit]
[-] rl-callbacktest.c
[edit]
[-] histexamp.c
[edit]
[-] NEWS
[edit]
[-] rlkeymaps.c
[edit]
[-] rlevent.c
[edit]
[-] rlptytest.c
[edit]
[-] rl-fgets.c
[edit]
[-] rlbasic.c
[edit]
[+]
rlfe
[-] rlversion.c
[edit]
[-] rlcat.c
[edit]
[-] hist_erasedups.c
[edit]
[-] manexamp.c
[edit]
[+]
..
[-] README
[edit]