#include #include #include #include int main() { char *s; using_history(); while((s=readline("> "))) { add_history(s); /* TODO: do something with s here */ free(s); } return 0; }