003 File Manager
Current Path:
/usr/local/share/readline
usr
/
local
/
share
/
readline
/
📁
..
📄
excallback.c
(5.67 KB)
📄
fileman.c
(11.38 KB)
📄
histexamp.c
(2.86 KB)
📄
manexamp.c
(3.22 KB)
📄
rl-fgets.c
(10.89 KB)
📄
rl.c
(3.12 KB)
📄
rlbasic.c
(459 B)
📄
rlcat.c
(3.22 KB)
📄
rlevent.c
(3.31 KB)
📄
rlptytest.c
(6.47 KB)
📄
rltest.c
(2.1 KB)
📄
rlversion.c
(1.26 KB)
Editing: rlbasic.c
#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); }
Upload File
Create Folder